mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-19 01:09:58 +00:00
fixed potential deadlock
This commit is contained in:
parent
f008478505
commit
85f5f5b91e
@ -85,18 +85,14 @@ namespace transport
|
||||
isReachable = (bool)router->GetCompatibleTransports (true);
|
||||
}
|
||||
}
|
||||
|
||||
~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…
x
Reference in New Issue
Block a user