diff --git a/lib/electrumx_rpc/rpc2.dart b/lib/electrumx_rpc/rpc2.dart index 64306fc27..c334b25a0 100644 --- a/lib/electrumx_rpc/rpc2.dart +++ b/lib/electrumx_rpc/rpc2.dart @@ -56,6 +56,8 @@ class JsonRPC { level: LogLevel.Info, ); _socket?.destroy(); + _socket = null; // is this redundant? + // should we also cancel and/or null the subscription? if (_requestQueue.isNotEmpty) { Logging.instance.log(