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:
Cameron Gutman committed 2026-10-19 00:25:00 -05:00
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;
}