feat(core): Close the socket on an error

This commit is contained in:
PapaTutuWawa 2023-03-30 16:17:42 +02:00
parent 1009a2f967
commit d4a972e073

View File

@ -397,6 +397,9 @@ class XmppConnection {
return; return;
} }
// Close the socket
_socket.close();
if (!error.isRecoverable()) { if (!error.isRecoverable()) {
// We cannot recover this error // We cannot recover this error
_log.severe( _log.severe(