nullify socket

better safe than sorry!
This commit is contained in:
Josh Babb 2023-05-25 15:11:04 -05:00
parent 7718a93059
commit 30c860d8c3

View file

@ -56,6 +56,8 @@ class JsonRPC {
level: LogLevel.Info, level: LogLevel.Info,
); );
_socket?.destroy(); _socket?.destroy();
_socket = null; // is this redundant?
// should we also cancel and/or null the subscription?
if (_requestQueue.isNotEmpty) { if (_requestQueue.isNotEmpty) {
Logging.instance.log( Logging.instance.log(