Core/Shared: Fix world and auth crash on shutdown (PCQ & DbWorker)
Fixes #12704
This commit is contained in:
1 parent
56c0581e55
commit
cb453fa093
2 files changed
+3
-3
No files matched your search
@@ -58,7 +58,7 @@ public:
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(_queueLock);
|
||||
|
||||
if (_queue.empty())
|
||||
if (_queue.empty() || _shutdown)
|
||||
return false;
|
||||
|
||||
value = _queue.front();
|
||||
@@ -77,7 +77,7 @@ public:
|
||||
_condition.wait(lock);
|
||||
}
|
||||
|
||||
if (_queue.empty())
|
||||
if (_queue.empty() || _shutdown)
|
||||
return;
|
||||
|
||||
value = _queue.front();
|
||||
|
||||
Reference in new issue
Block a user