summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/pulse/pulse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/pulse/pulse.c b/plugins/pulse/pulse.c
index a359bf19..24083d85 100644
--- a/plugins/pulse/pulse.c
+++ b/plugins/pulse/pulse.c
@@ -227,7 +227,9 @@ static void pulse_thread(void *context)
if (res < 0)
{
fprintf(stderr, "pulse: failed to write buffer\n");
- pulse_terminate = 1;
+ pulse_tid = 0;
+ pulse_free ();
+ break;
}
}
}