Fixed: connectionImpl pushMsg to avoid multiple calls of writeMessage on an empty message queue