Commit 809fb2ab authored by Victor Yacovlev's avatar Victor Yacovlev

kumir2-xrun: fixed Segfault at exit when DISPLAY set

parent bb56d0ee
......@@ -471,6 +471,12 @@ void KumirRunPlugin::terminateAndWaitForStopped()
terminate();
}
pRun_->wait();
#ifdef Q_OS_LINUX
bool gui = getenv("DISPLAY")!=0;
if (gui) {
usleep(50000);
}
#endif
}
......@@ -802,6 +808,7 @@ void KumirRunPlugin::start()
pRun_->start();
pRun_->wait();
checkForErrorInConsole();
stop();
}
else {
startTimer(0); // start thread after event loop started
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment