Code cleanups.

This commit is contained in:
Jonathan Naylor 2016-10-18 07:55:01 +01:00
parent 47fac16a70
commit 02e126604f
14 changed files with 340 additions and 18 deletions

View file

@ -21,6 +21,7 @@
#include "Parrot.h"
#include "Network.h"
#include "Version.h"
#include "Thread.h"
#include "Timer.h"
#include "Log.h"
@ -148,13 +149,8 @@ void CYSFParrot::run()
parrot.end();
}
if (ms < 5U) {
#if defined(_WIN32) || defined(_WIN64)
::Sleep(5UL); // 5ms
#else
::usleep(5000); // 5ms
#endif
}
if (ms < 5U)
CThread::sleep(5U);
}
network.close();