16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 14:39:18 +02:00

fix stdafx cotire

This commit is contained in:
milek
2019-03-25 20:35:23 +00:00
parent 810ea151e2
commit 075d88e8d7
3 changed files with 8 additions and 15 deletions

View File

@@ -154,7 +154,8 @@ void python_taskqueue::exit() {
m_condition.notify_all();
// let them free up their shit before we proceed
for( auto &worker : m_workers ) {
worker.join();
if (worker.joinable())
worker.join();
}
// get rid of the leftover tasks
// with the workers dead we don't have to worry about concurrent access anymore