From fe7b429866693debe0057d81f11e527f61dfd24b Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 27 Oct 2014 17:32:37 -0700 Subject: ... --- testnet/SimNetSocketManager.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'testnet/SimNetSocketManager.hpp') diff --git a/testnet/SimNetSocketManager.hpp b/testnet/SimNetSocketManager.hpp index 82092b78..1dde7fe8 100644 --- a/testnet/SimNetSocketManager.hpp +++ b/testnet/SimNetSocketManager.hpp @@ -35,7 +35,7 @@ #include "../node/Constants.hpp" #include "../node/SocketManager.hpp" #include "../node/Mutex.hpp" -#include "../node/Condition.hpp" +#include "Condition.hpp" namespace ZeroTier { @@ -96,10 +96,8 @@ public: */ inline void enqueue(const InetAddress &from,const void *data,unsigned int len) { - { - Mutex::Lock _l(_inbox_m); - _inbox.push_back(std::pair< InetAddress,Buffer >(from,Buffer(data,len))); - } + Mutex::Lock _l(_inbox_m); + _inbox.push_back(std::pair< InetAddress,Buffer >(from,Buffer(data,len))); _waitCond.signal(); } -- cgit v1.2.3