1
0

ProtoProxy: Removed the per-packet sleep from the DEBUG version.

It is now enabled by defining a macro, by default off.
This commit is contained in:
madmaxoft 2013-09-19 21:35:33 +02:00
parent 111fd58914
commit d9494ccf1e

View File

@ -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 #define DebugSleep Sleep
#else #else
#define DebugSleep(X) #define DebugSleep(X)
@ -299,7 +306,7 @@ void cConnection::Run(void)
Log("Cannot connect to server; aborting"); Log("Cannot connect to server; aborting");
return; return;
} }
while (true) while (true)
{ {
fd_set ReadFDs; fd_set ReadFDs;