destroy socket when done

This commit is contained in:
Josh Babb 2023-05-25 13:49:14 -05:00
parent 6749bc2f06
commit 6ca51c99c9

View file

@ -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 {