Browse Source

reset acceptor on stop of server tunnel

pull/1786/head
orignal 2 years ago
parent
commit
7f0845dfd3
  1. 6
      libi2pd_client/I2PTunnel.cpp

6
libi2pd_client/I2PTunnel.cpp

@ -660,6 +660,12 @@ namespace client @@ -660,6 +660,12 @@ namespace client
void I2PServerTunnel::Stop ()
{
if (m_PortDestination)
m_PortDestination->ResetAcceptor ();
auto localDestination = GetLocalDestination ();
if (localDestination)
localDestination->StopAcceptingStreams ();
ClearHandlers ();
}

Loading…
Cancel
Save