summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--components/volume.c1
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;
}
}