mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
reset acceptor on stop of server tunnel
This commit is contained in:
parent
f875823357
commit
7f0845dfd3
1 changed files with 6 additions and 0 deletions
|
@ -660,6 +660,12 @@ namespace client
|
||||||
|
|
||||||
void I2PServerTunnel::Stop ()
|
void I2PServerTunnel::Stop ()
|
||||||
{
|
{
|
||||||
|
if (m_PortDestination)
|
||||||
|
m_PortDestination->ResetAcceptor ();
|
||||||
|
auto localDestination = GetLocalDestination ();
|
||||||
|
if (localDestination)
|
||||||
|
localDestination->StopAcceptingStreams ();
|
||||||
|
|
||||||
ClearHandlers ();
|
ClearHandlers ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue