mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
fixed race consition
This commit is contained in:
parent
4abe89e34b
commit
168e20053a
4 changed files with 50 additions and 36 deletions
1
Garlic.h
1
Garlic.h
|
@ -125,6 +125,7 @@ namespace garlic
|
|||
// outgoing sessions
|
||||
std::mutex m_SessionsMutex;
|
||||
std::map<i2p::data::IdentHash, GarlicRoutingSession *> m_Sessions;
|
||||
std::mutex m_CreatedSessionsMutex;
|
||||
std::map<uint32_t, GarlicRoutingSession *> m_CreatedSessions; // msgID -> session
|
||||
// incoming session
|
||||
// multiple tags refer to one decyption
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue