removed usleep() call to enable compilation on Windows again
This commit is contained in:
parent
60f99818e1
commit
7157963204
1 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue