diff --git a/src/gba/supervisor/thread.c b/src/gba/supervisor/thread.c index b39d75d23..e9950b4cb 100644 --- a/src/gba/supervisor/thread.c +++ b/src/gba/supervisor/thread.c @@ -76,7 +76,7 @@ static void _waitUntilNotState(struct GBAThread* threadContext, enum ThreadState MutexUnlock(&threadContext->sync.videoFrameMutex); } - if (!MutexLock(&threadContext->sync.audioBufferMutex)) { + if (!MutexTryLock(&threadContext->sync.audioBufferMutex)) { ConditionWake(&threadContext->sync.audioRequiredCond); MutexUnlock(&threadContext->sync.audioBufferMutex); }