Removed a minor bug where unsent messages would not get resend after successful connection establishment.