Fix loop of connected-disconnected. See https://github.com/mgp25/WhatsAPI-Official/issues/173