From cbeb0f75ad5ef44f1083b547721d6aa0639d84c5 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 8 Feb 2010 19:38:54 +0100 Subject: fixed recovering after disconnect in pulse plugin --- plugins/pulse/pulse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'plugins') 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; } } } -- cgit v1.2.3