From 757e7bb4b219c5c9704534926dc90e9a3717f85d Mon Sep 17 00:00:00 2001 From: Ingo Feinerer Date: Mon, 15 Feb 2021 12:56:42 +0100 Subject: 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. --- components/volume.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- cgit v1.2.3