mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-27 05:45:42 +00:00
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) {
|
||||
warn("sndio: disconnected");
|
||||
cleanup();
|
||||
initialized = 0;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user