1
0
Fork 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
1 changed files with 9 additions and 2 deletions

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