1
0
Fork 0

Reset sndiod initialization flag on disconnects

If the connection is lost to the sndiod(8) daemon reset the
initialization to allow for a graceful restart.
This commit is contained in:
Ingo Feinerer 2021-02-15 12:56:42 +01:00 committed by drkhsh
parent 798809ce02
commit 3b699c127d

View file

@ -161,6 +161,7 @@
if (sioctl_revents(hdl, pfds) & POLLHUP) { if (sioctl_revents(hdl, pfds) & POLLHUP) {
warn("sndio: disconnected"); warn("sndio: disconnected");
cleanup(); cleanup();
initialized = 0;
return NULL; return NULL;
} }
} }