mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 21:37:17 +01:00
fixed potential deadlock
This commit is contained in:
parent
f008478505
commit
85f5f5b91e
|
@ -86,17 +86,13 @@ namespace transport
|
|||
}
|
||||
}
|
||||
|
||||
~Peer ()
|
||||
{
|
||||
// drop not sent delayed messages
|
||||
for (auto& it: delayedMessages)
|
||||
it->Drop ();
|
||||
}
|
||||
|
||||
void Done ()
|
||||
{
|
||||
for (auto& it: sessions)
|
||||
it->Done ();
|
||||
// drop not sent delayed messages
|
||||
for (auto& it: delayedMessages)
|
||||
it->Drop ();
|
||||
}
|
||||
|
||||
void SetRouter (std::shared_ptr<const i2p::data::RouterInfo> r)
|
||||
|
|
Loading…
Reference in a new issue