mirror of
https://github.com/ShaYmez/P25Clients.git
synced 2026-06-03 06:24:42 -04:00
Code cleanups.
This commit is contained in:
@@ -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 CP25Parrot::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();
|
||||
|
||||
Reference in New Issue
Block a user