mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
avoid race condition
This commit is contained in:
parent
acbe0d801d
commit
9ad76aa0cf
2 changed files with 4 additions and 1 deletions
|
@ -48,6 +48,7 @@ namespace tunnel
|
|||
TunnelMessageBlock block;
|
||||
block.deliveryType = eDeliveryTypeLocal;
|
||||
block.data = msg;
|
||||
std::unique_lock<std::mutex> l(m_SendMutex);
|
||||
m_Gateway.SendTunnelDataMsg (block);
|
||||
}
|
||||
|
||||
|
@ -81,4 +82,4 @@ namespace tunnel
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue