removed second early publish state when socket is not open