mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-21 07:46:52 +00:00
Check for pacing queue emptiness before dequeuing
This shouldn't actually be reachable when the queue is empty, but we can check anyway to be safe. Ref: #2054
This commit is contained in:
1 parent
9b8886a6f5
commit
e4db5c2c18
1 file changed
+1
-1
@@ -249,7 +249,7 @@ void Pacer::handleVsync(int timeUntilNextVsyncMillis)
|
||||
return;
|
||||
}
|
||||
|
||||
if (m_Stopping) {
|
||||
if (m_Stopping || m_PacingQueue.isEmpty()) {
|
||||
m_FrameQueueLock.unlock();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user