fix worker checks if thread object exists before attempting join

This commit is contained in:
Fabian Posch 2024-01-09 20:40:26 -05:00
parent 8855664d65
commit e85ce57b82

View file

@ -39,7 +39,8 @@ void Worker::cancel_current() {
}
void Worker::join() {
worker_thread->join();
if (this->worker_thread != nullptr) return;
this->worker_thread->join();
}
void Worker::thread_run() {