Commit 71579632 authored by Max-Wilhelm Bruker's avatar Max-Wilhelm Bruker
Browse files

removed usleep() call to enable compilation on Windows again

parent 60f99818
......@@ -64,8 +64,15 @@ void Server::prepareDestroy()
clientsLock.unlock();
bool done = false;
class SleeperThread : public QThread
{
public:
static void msleep(unsigned long msecs) { QThread::usleep(msecs); }
};
do {
usleep(10000);
SleeperThread::msleep(10);
clientsLock.lockForRead();
if (clients.isEmpty())
done = true;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment