Reset sndiod initialization flag on disconnects - slstatus - status monitor
 (HTM) git clone git://git.suckless.org/slstatus
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 3b699c127db745b32002c14d59a6de4ebcc0b7db
 (DIR) parent 798809ce02528d5954e0b1d524f44c29503a7407
 (HTM) Author: Ingo Feinerer <feinerer@logic.at>
       Date:   Mon, 15 Feb 2021 12:56:42 +0100
       
       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.
       
       Diffstat:
         M components/volume.c                 |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git 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;
                                        }
                                }