If both PacketReader and PacketWriter fail at the same time, connectionClosedonError() is called two times
Description
'PacketReader.notifiyConnectionError(Exception e)' should be moved to XMPPConnection (where it belongs), guarded with 'if (done) return;' and keyworded as synchronized.
'
PacketReader.notifiyConnectionError(Exception e)
' should be moved to XMPPConnection (where it belongs), guarded with 'if (done) return;
' and keyworded as synchronized.Development References:
https://github.com/Flowdalic/smack/issues/19