summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngo Feinerer <feinerer@logic.at>2021-02-15 12:56:42 +0100
committerdrkhsh <me@drkhsh.at>2022-10-26 21:24:16 +0200
commit0035fc4067243321e957ad1bba12b30234cf8d57 (patch)
tree834e56db8ebf6f5924f2e0882b4fb72ac96a9628
parent7d2fda143178149cc4dc352fd9ab9ffa6e287cb6 (diff)
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.
-rw-r--r--components/volume.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/volume.c b/components/volume.c
index 32f7817..c94f872 100644
--- a/components/volume.c
+++ b/components/volume.c
@@ -161,6 +161,7 @@
if (sioctl_revents(hdl, pfds) & POLLHUP) {
warn("sndio: disconnected");
cleanup();
+ initialized = 0;
return NULL;
}
}