From 7f0845dfd36617078daf169bdca869d9fd44dbb3 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 16 Aug 2022 14:06:13 -0400 Subject: [PATCH] reset acceptor on stop of server tunnel --- libi2pd_client/I2PTunnel.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libi2pd_client/I2PTunnel.cpp b/libi2pd_client/I2PTunnel.cpp index 4d749927..c2839c62 100644 --- a/libi2pd_client/I2PTunnel.cpp +++ b/libi2pd_client/I2PTunnel.cpp @@ -660,6 +660,12 @@ namespace client void I2PServerTunnel::Stop () { + if (m_PortDestination) + m_PortDestination->ResetAcceptor (); + auto localDestination = GetLocalDestination (); + if (localDestination) + localDestination->StopAcceptingStreams (); + ClearHandlers (); }