mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-09 12:19:24 +00:00
nullify socket
better safe than sorry!
This commit is contained in:
parent
7718a93059
commit
30c860d8c3
1 changed files with 2 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue