summaryrefslogtreecommitdiff
path: root/testnet/SimNetSocketManager.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-27 17:32:37 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-10-27 17:32:37 -0700
commitfe7b429866693debe0057d81f11e527f61dfd24b (patch)
treeeec1665503a47e139a4d928b976c66cdd3e146f5 /testnet/SimNetSocketManager.hpp
parent295f6a20e0e0c9e4d99472f1580963ffc424619c (diff)
downloadinfinitytier-fe7b429866693debe0057d81f11e527f61dfd24b.tar.gz
infinitytier-fe7b429866693debe0057d81f11e527f61dfd24b.zip
...
Diffstat (limited to 'testnet/SimNetSocketManager.hpp')
-rw-r--r--testnet/SimNetSocketManager.hpp8
1 files changed, 3 insertions, 5 deletions
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<ZT_SOCKET_MAX_MESSAGE_LEN> >(from,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN>(data,len)));
- }
+ Mutex::Lock _l(_inbox_m);
+ _inbox.push_back(std::pair< InetAddress,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN> >(from,Buffer<ZT_SOCKET_MAX_MESSAGE_LEN>(data,len)));
_waitCond.signal();
}