From 816e4d533df8d1bf16a67bb84dbccc613e62d20b Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 11 Feb 2015 18:47:20 -0500 Subject: [PATCH] fixed race condition --- TransitTunnel.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/TransitTunnel.cpp b/TransitTunnel.cpp index 31cbb4f8..770ab246 100644 --- a/TransitTunnel.cpp +++ b/TransitTunnel.cpp @@ -74,6 +74,7 @@ namespace tunnel void TransitTunnelGateway::FlushTunnelDataMsgs () { + std::unique_lock l(m_SendMutex); m_Gateway.SendBuffer (); }