Fix a bug with the deviceio test.

This commit is contained in:
David Reid
2025-02-19 09:43:51 +10:00
parent 698a4319f0
commit e08c1303ef
+5 -1
View File
@@ -594,7 +594,7 @@ int main(int argc, char** argv)
} }
/* Now we just keep looping and wait for user input. */ /* Now we just keep looping and wait for user input. */
while (!g_State.wantsToClose) { for (;;) {
if (interactive) { if (interactive) {
int c; int c;
@@ -630,6 +630,10 @@ int main(int argc, char** argv)
} }
} else { } else {
/* Running in auto-close mode. Just sleep for a bit. The data callback will control when this loop aborts. */ /* Running in auto-close mode. Just sleep for a bit. The data callback will control when this loop aborts. */
if (g_State.wantsToClose) {
break;
}
ma_sleep(10); ma_sleep(10);
} }
} }