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
1 changed files with 1 additions and 0 deletions

View File

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