mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-20 11:56:12 +00:00
replace sleep with QThread::sleep (issue #20)
This commit is contained in:
parent
2d0238aeb0
commit
09598dec33
@ -244,7 +244,7 @@ void MainWindow::start_web_server() {
|
|||||||
// Start web server
|
// Start web server
|
||||||
thread.core = core;
|
thread.core = core;
|
||||||
thread.start();
|
thread.start();
|
||||||
sleep (1);
|
QThread::sleep (1);
|
||||||
if (core->core->http_up == R_FALSE) {
|
if (core->core->http_up == R_FALSE) {
|
||||||
eprintf ("FAILED TO LAUNCH\n");
|
eprintf ("FAILED TO LAUNCH\n");
|
||||||
}
|
}
|
||||||
@ -834,7 +834,7 @@ void MainWindow::on_actionStart_Web_Server_triggered()
|
|||||||
// Start web server
|
// Start web server
|
||||||
thread.core = core;
|
thread.core = core;
|
||||||
thread.start();
|
thread.start();
|
||||||
sleep (1);
|
QThread::sleep (1);
|
||||||
if (core->core->http_up==R_FALSE) {
|
if (core->core->http_up==R_FALSE) {
|
||||||
eprintf ("FAILED TO LAUNCH\n");
|
eprintf ("FAILED TO LAUNCH\n");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user