mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-19 01:09:58 +00: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_PeerCleanupTimer) m_PeerCleanupTimer->cancel ();
|
||||||
if (m_PeerTestTimer) m_PeerTestTimer->cancel ();
|
if (m_PeerTestTimer) m_PeerTestTimer->cancel ();
|
||||||
m_Peers.clear ();
|
|
||||||
|
|
||||||
if (m_SSU2Server)
|
if (m_SSU2Server)
|
||||||
{
|
{
|
||||||
@ -353,6 +352,7 @@ namespace transport
|
|||||||
delete m_Thread;
|
delete m_Thread;
|
||||||
m_Thread = nullptr;
|
m_Thread = nullptr;
|
||||||
}
|
}
|
||||||
|
m_Peers.clear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Transports::Run ()
|
void Transports::Run ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user