[hackers] [slstatus][PATCH] Reset initialization flag on disconnects or errors

From: Ingo Feinerer <feinerer_AT_logic.at>
Date: Mon, 15 Feb 2021 12:56:42 +0100

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 b6665da..d73bf51 100644
--- a/components/volume.c
+++ b/components/volume.c
_AT_@ -161,6 +161,7 @@
 				if (sioctl_revents(hdl, pfds) & POLLHUP) {
 					warn("sndio: disconnected");
 					cleanup();
+					initialized = 0;
 					return NULL;
 				}
 			}
-- 
2.30.1
Received on Mon Feb 15 2021 - 12:56:42 CET

This archive was generated by hypermail 2.3.0 : Mon Feb 15 2021 - 13:36:46 CET