mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-06 20:55:23 +02:00
Probably fix crash on exit reported in #8022
This commit is contained in:
@@ -107,7 +107,9 @@ void ProcessWorkQueueOnThreadWhile(PrioritizedWorkQueue *wq) {
|
||||
|
||||
void StopProcessingWorkQueue(PrioritizedWorkQueue *wq) {
|
||||
wq->Stop();
|
||||
workThread->join();
|
||||
delete workThread;
|
||||
if (workThread) {
|
||||
workThread->join();
|
||||
delete workThread;
|
||||
}
|
||||
workThread = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user