fix racecondition

This commit is contained in:
milek7
2019-04-09 22:24:50 +02:00
parent 7b841ca5ac
commit ef3a66dc0b

View File

@@ -50,8 +50,8 @@ void ui::cameraview_panel::render_contents()
if (exit_thread) {
if (workthread.joinable())
workthread.join();
workthread = std::thread(&cameraview_panel::workthread_func, this);
exit_thread = false;
workthread = std::thread(&cameraview_panel::workthread_func, this);
}
if (!texture) {