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:
@@ -48,6 +48,9 @@ namespace tunnel
|
||||
void TestTunnels ();
|
||||
void ProcessDeliveryStatus (I2NPMessage * msg);
|
||||
|
||||
bool IsDeleted () const { return m_IsDeleted; };
|
||||
void SetDeleted () { m_IsDeleted = true; }
|
||||
|
||||
private:
|
||||
|
||||
void CreateInboundTunnel ();
|
||||
@@ -68,6 +71,7 @@ namespace tunnel
|
||||
mutable std::mutex m_OutboundTunnelsMutex;
|
||||
std::set<OutboundTunnel *, TunnelCreationTimeCmp> m_OutboundTunnels;
|
||||
std::map<uint32_t, std::pair<OutboundTunnel *, InboundTunnel *> > m_Tests;
|
||||
bool m_IsDeleted;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user