ref: 36181b1c3b573d4b15eed6b66591a246875d5657
parent: a9006b7d8db146f51c4adc2f356d80dc0211ad81
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Thu Oct 28 20:29:30 EDT 2021
sdl2 audio: don't expect the chan to close if no audio thread is running
--- a/libnpe_sdl2/audio.c
+++ b/libnpe_sdl2/audio.c
@@ -248,7 +248,8 @@
close(a->fd);
unlock(a);
- recvul(a->wait);
+ if(a->pid >= 0)
+ recvul(a->wait);
chanfree(a->wait);
free(a->buf);