mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
fixed potential deadlock
This commit is contained in:
@@ -86,17 +86,13 @@ namespace transport
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
~Peer ()
|
|
||||||
{
|
|
||||||
// drop not sent delayed messages
|
|
||||||
for (auto& it: delayedMessages)
|
|
||||||
it->Drop ();
|
|
||||||
}
|
|
||||||
|
|
||||||
void Done ()
|
void Done ()
|
||||||
{
|
{
|
||||||
for (auto& it: sessions)
|
for (auto& it: sessions)
|
||||||
it->Done ();
|
it->Done ();
|
||||||
|
// drop not sent delayed messages
|
||||||
|
for (auto& it: delayedMessages)
|
||||||
|
it->Drop ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SetRouter (std::shared_ptr<const i2p::data::RouterInfo> r)
|
void SetRouter (std::shared_ptr<const i2p::data::RouterInfo> r)
|
||||||
|
|||||||
Reference in New Issue
Block a user