mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
sleep api used in pgAdmin4.cpp doesn't seem cross-platform(used from POSIX
specific C header). Either need to be replaced by C++11 equivalent or Qt one. QThread::sleep seem appropriate to me.
This commit is contained in:
committed by
Dave Page
parent
c1db54b2c2
commit
6c62d9eecd
@@ -61,7 +61,7 @@ int main(int argc, char * argv[])
|
|||||||
|
|
||||||
// This is a hack. Wait a second and then check to see if the server thread
|
// This is a hack. Wait a second and then check to see if the server thread
|
||||||
// is still running. If it's not, we probably had a startup error
|
// is still running. If it's not, we probably had a startup error
|
||||||
sleep(1);
|
QThread::sleep(1);
|
||||||
|
|
||||||
// Any errors?
|
// Any errors?
|
||||||
if (server->isFinished() || server->getError().length() > 0)
|
if (server->isFinished() || server->getError().length() > 0)
|
||||||
@@ -108,7 +108,7 @@ int main(int argc, char * argv[])
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(1);
|
QThread::sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create & show the main window
|
// Create & show the main window
|
||||||
|
|||||||
Reference in New Issue
Block a user