Skip to content

Commit

Permalink
replace sleep with QThread::sleep (issue radareorg#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexodia committed Mar 31, 2017
1 parent 2d0238a commit 09598de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down Expand Up @@ -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");
}
Expand Down

0 comments on commit 09598de

Please sign in to comment.