I think  outgoingQueue and pendingQueue should not be cleared when
connection lost.
just add pendingQueue to the header of outgoingQueue.
And send the messages in outgoingQueue out when new connection established.


Sincerely

Reply via email to