mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Probably fix crash on exit reported in #8022
This commit is contained in:
parent
490d8be4df
commit
41efe18bba
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue