summaryrefslogtreecommitdiff
path: root/plugins/pulse
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-08 19:38:54 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2010-02-08 19:38:54 +0100
commitcbeb0f75ad5ef44f1083b547721d6aa0639d84c5 (patch)
treeb8657dae3a8f822bdb7ae6f0a49b9cb133c3112e /plugins/pulse
parent81b82474184213dd98c78520ee756d76e5914911 (diff)
fixed recovering after disconnect in pulse plugin
Diffstat (limited to 'plugins/pulse')
-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;
}
}
}