mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
properly close the socket on onDone callback (#2746)
* properly close the socket on onDone callback * fix workflow * remove exceptions for fiat check script
This commit is contained in:
@@ -129,11 +129,9 @@ class ElectrumClient {
|
||||
printV("SOCKET CLOSED!!!!!");
|
||||
unterminatedString = '';
|
||||
try {
|
||||
if (host == socket?.address.host || socket == null) {
|
||||
_setConnectionStatus(ConnectionStatus.disconnected);
|
||||
socket?.destroy();
|
||||
socket = null;
|
||||
}
|
||||
_setConnectionStatus(ConnectionStatus.disconnected);
|
||||
socket?.destroy();
|
||||
socket = null;
|
||||
} catch (e) {
|
||||
printV("onDone: $e");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user