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
TreeHunter9 and Artyom Ivanov authored Mar 3, 2025
1 parent 902f8fd commit 26ff286
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 @@ -1841,7 +1841,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 26ff286

Please sign in to comment.