From b91f5a7430ae0da553bc4988a34b6148784701f4 Mon Sep 17 00:00:00 2001 From: orignal Date: Fri, 3 May 2024 20:38:57 -0400 Subject: [PATCH] fixed race condition on stop --- libi2pd/Transports.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/Transports.cpp b/libi2pd/Transports.cpp index de72d01f..e4191fd2 100644 --- a/libi2pd/Transports.cpp +++ b/libi2pd/Transports.cpp @@ -328,7 +328,6 @@ namespace transport { if (m_PeerCleanupTimer) m_PeerCleanupTimer->cancel (); if (m_PeerTestTimer) m_PeerTestTimer->cancel (); - m_Peers.clear (); if (m_SSU2Server) { @@ -353,6 +352,7 @@ namespace transport delete m_Thread; m_Thread = nullptr; } + m_Peers.clear (); } void Transports::Run ()