Fix for a situation where the library would postpone every message after a reconnect