Commit e08c1303 authored by David Reid's avatar David Reid

Fix a bug with the deviceio test.

parent 698a4319
......@@ -594,7 +594,7 @@ int main(int argc, char** argv)
}
/* Now we just keep looping and wait for user input. */
while (!g_State.wantsToClose) {
for (;;) {
if (interactive) {
int c;
......@@ -630,6 +630,10 @@ int main(int argc, char** argv)
}
} else {
/* 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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment