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:
parent
798809ce02
commit
3b699c127d
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@
|
|||
if (sioctl_revents(hdl, pfds) & POLLHUP) {
|
||||
warn("sndio: disconnected");
|
||||
cleanup();
|
||||
initialized = 0;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue