mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 17:57:40 +00:00
destroy socket when done
This commit is contained in:
parent
6749bc2f06
commit
6ca51c99c9
1 changed files with 2 additions and 1 deletions
|
@ -52,9 +52,10 @@ class JsonRPC {
|
|||
void _doneHandler() {
|
||||
Logging.instance.log(
|
||||
"JsonRPC doneHandler: "
|
||||
"connection closed to ${_socket?.address}:${_socket?.port}",
|
||||
"connection closed to ${_socket?.address}:${_socket?.port}, destroying socket",
|
||||
level: LogLevel.Info,
|
||||
);
|
||||
_socket?.destroy();
|
||||
}
|
||||
|
||||
Future<void> _onReqCompleted(_JsonRPCRequest req) async {
|
||||
|
|
Loading…
Reference in a new issue