diff options
author | Ingo Feinerer <feinerer@logic.at> | 2021-02-15 12:56:42 +0100 |
---|---|---|
committer | Rafael Marçalo <raroma09@gmail.com> | 2022-10-27 12:58:46 +0100 |
commit | 757e7bb4b219c5c9704534926dc90e9a3717f85d (patch) | |
tree | 0a2848ae45b64c2c1ca26a85aaf9e3585325066f /components/volume.c | |
parent | 234dd3d5db6217cb49880a924e27509080a7f661 (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.
Diffstat (limited to 'components/volume.c')
-rw-r--r-- | components/volume.c | 1 |
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; } } |