From 3d37c9017c1ba78a0e26bfe20be5c36f841db749 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Sat, 26 Mar 2011 08:50:53 -0400 Subject: [PATCH] More explicitly avoid infinite recursion in connection failure There appears to be a loop: While I think the intention was that CA_CONTEXT_NOFAIL wasn't supposed to invoke our callback (maybe?) we should explicitly avoid this here in libcanberra by clearing the "reconnect" flag; nothing was ever setting it to FALSE anyways. https://bugs.freedesktop.org/show_bug.cgi?id=35024 --- src/pulse.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/pulse.c b/src/pulse.c index d4225d1..6a81004 100644 --- a/src/pulse.c +++ b/src/pulse.c @@ -312,6 +312,7 @@ static void context_state_cb(pa_context *pc, void *userdata) { } p->subscribed = FALSE; + p->reconnect = FALSE; /* If we managed to connect once, then let's try to * reconnect, and pass NOFAIL */ -- 1.7.4