Never deadlock ever again thanks
This commit is contained in:
parent
97652b7460
commit
38eafeb0cf
@ -390,7 +390,7 @@ static void infraredStateChanged(GB_gameboy_t *gb, bool on)
|
||||
|
||||
if (audioBufferPosition < nFrames) {
|
||||
audioBufferNeeded = nFrames;
|
||||
[audioLock wait];
|
||||
[audioLock waitUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.125]];
|
||||
}
|
||||
|
||||
if (stopping || GB_debugger_is_stopped(&gb)) {
|
||||
|
Loading…
Reference in New Issue
Block a user