mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
fixed race condition
This commit is contained in:
1
Garlic.h
1
Garlic.h
@@ -129,6 +129,7 @@ namespace garlic
|
||||
std::map<uint32_t, GarlicRoutingSession *> m_CreatedSessions; // msgID -> session
|
||||
// incoming session
|
||||
// multiple tags refer to one decyption
|
||||
std::mutex m_SessionsTagsMutex;
|
||||
std::map<SessionTag, SessionDecryption *> m_SessionTags; // tag -> decryption
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user