commit 3b699c127db745b32002c14d59a6de4ebcc0b7db
Author:     Ingo Feinerer <[email protected]>
AuthorDate: Mon Feb 15 12:56:42 2021 +0100
Commit:     drkhsh <[email protected]>
CommitDate: Wed Oct 26 21:24:16 2022 +0200

    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.

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;
                                }
                        }

Reply via email to