replace sleep with QThread::sleep (issue #20)

This commit is contained in:
mrexodia 2017-03-31 02:15:38 +02:00
parent 2d0238aeb0
commit 09598dec33
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8

View File

@ -244,7 +244,7 @@ void MainWindow::start_web_server() {
// Start web server
thread.core = core;
thread.start();
sleep (1);
QThread::sleep (1);
if (core->core->http_up == R_FALSE) {
eprintf ("FAILED TO LAUNCH\n");
}
@ -834,7 +834,7 @@ void MainWindow::on_actionStart_Web_Server_triggered()
// Start web server
thread.core = core;
thread.start();
sleep (1);
QThread::sleep (1);
if (core->core->http_up==R_FALSE) {
eprintf ("FAILED TO LAUNCH\n");
}