mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-23 21:32:57 +00:00
fixed possible crash at shutdown
This commit is contained in:
1 parent
36939898fe
commit
7497741846
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -1550,6 +1550,7 @@ namespace transport
|
||||
|
||||
void NTCP2Server::Stop ()
|
||||
{
|
||||
m_EstablisherService.Stop ();
|
||||
{
|
||||
// we have to copy it because Terminate changes m_NTCP2Sessions
|
||||
auto ntcpSessions = m_NTCP2Sessions;
|
||||
@@ -1565,7 +1566,6 @@ namespace transport
|
||||
m_TerminationTimer.cancel ();
|
||||
m_ProxyEndpoint = nullptr;
|
||||
}
|
||||
m_EstablisherService.Stop ();
|
||||
StopIOService ();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user