From d9494ccf1ea9178ce93dbb2374bddd221d8650e6 Mon Sep 17 00:00:00 2001 From: madmaxoft Date: Thu, 19 Sep 2013 21:35:33 +0200 Subject: ProtoProxy: Removed the per-packet sleep from the DEBUG version. It is now enabled by defining a macro, by default off. --- Tools/ProtoProxy/Connection.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Tools') diff --git a/Tools/ProtoProxy/Connection.cpp b/Tools/ProtoProxy/Connection.cpp index e985c2ff6..aa4dde977 100644 --- a/Tools/ProtoProxy/Connection.cpp +++ b/Tools/ProtoProxy/Connection.cpp @@ -15,7 +15,14 @@ -#ifdef _DEBUG +/// When defined, the following macro causes a sleep after each parsed packet (DEBUG-mode only) +// #define SLEEP_AFTER_PACKET + + + + + +#if defined(_DEBUG) && defined(SLEEP_AFTER_PACKET) #define DebugSleep Sleep #else #define DebugSleep(X) @@ -299,7 +306,7 @@ void cConnection::Run(void) Log("Cannot connect to server; aborting"); return; } - + while (true) { fd_set ReadFDs; -- cgit v1.2.3