From 10c97cffc749f620444a68acd7065552f2e86432 Mon Sep 17 00:00:00 2001 From: Artyom Ivanov Date: Fri, 7 Feb 2025 15:08:10 +0300 Subject: [PATCH] Close port_async when forcebly closing main port --- src/remote/inet.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/remote/inet.cpp b/src/remote/inet.cpp index 552afde30ec..bdad80d0176 100644 --- a/src/remote/inet.cpp +++ b/src/remote/inet.cpp @@ -1839,7 +1839,11 @@ static void force_close(rem_port* port) **************************************/ if (port->port_async) - abort_aux_connection(port->port_async); + { + rem_port* port_async = port->port_async; + abort_aux_connection(port_async); + port_async->force_close(); + } if (port->port_state != rem_port::PENDING) return;