mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-09 15:50:26 +03:00
fixed race condition on stop
This commit is contained in:
parent
4d8431907d
commit
b91f5a7430
@ -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 ()
|
||||
|
Loading…
Reference in New Issue
Block a user