reset acceptor on stop of server tunnel

This commit is contained in:
orignal committed 2022-08-16 14:06:13 -04:00
1 parent f875823357
commit 7f0845dfd3
1 file changed
+6
+6
View File
@@ -660,6 +660,12 @@ namespace client
void I2PServerTunnel::Stop ()
{
if (m_PortDestination)
m_PortDestination->ResetAcceptor ();
auto localDestination = GetLocalDestination ();
if (localDestination)
localDestination->StopAcceptingStreams ();
ClearHandlers ();
}