Skip to content

Commit

Permalink
Close port_async when forcebly closing main port (#8432)
Browse files Browse the repository at this point in the history
Co-authored-by: Artyom Ivanov <[email protected]>
  • Loading branch information
2 people authored and dyemanov committed Mar 3, 2025
1 parent 5e33dc5 commit 3be990f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/remote/inet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3be990f

Please sign in to comment.