feat(core): Close the socket on an error
This commit is contained in:
parent
1009a2f967
commit
d4a972e073
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user