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
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user