Skip to content

Commit 3be990f

Browse files
TreeHunter9Artyom Ivanov
authored andcommitted
Close port_async when forcebly closing main port (#8432)
Co-authored-by: Artyom Ivanov <[email protected]>
1 parent 5e33dc5 commit 3be990f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/remote/inet.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1839,7 +1839,11 @@ static void force_close(rem_port* port)
18391839
**************************************/
18401840

18411841
if (port->port_async)
1842-
abort_aux_connection(port->port_async);
1842+
{
1843+
rem_port* port_async = port->port_async;
1844+
abort_aux_connection(port_async);
1845+
port_async->force_close();
1846+
}
18431847

18441848
if (port->port_state != rem_port::PENDING)
18451849
return;

0 commit comments

Comments
 (0)