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:
Omar Hatem
2025-12-17 19:16:41 +02:00
committed by GitHub
parent cbc1e392c2
commit 3579d8c61f
+3 -5
View File
@@ -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");
}