From 997ccee8955c52b6e7c9e0c4b43647e25062ad53 Mon Sep 17 00:00:00 2001 From: Adam Sutton Date: Thu, 5 Sep 2013 23:46:43 +0100 Subject: [PATCH] subscriptions: stop re-entrant call to subs_reschedule() THe problem is that mux subs have been done such that unsubscribe (which in turn calls subs_reschedule()) can itelf be called in line from subs_reschedule(). Really this is a bit of a mess but this simple hack fixes things. --- src/subscriptions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/subscriptions.c b/src/subscriptions.c index 51d7e886..900559fd 100644 --- a/src/subscriptions.c +++ b/src/subscriptions.c @@ -185,6 +185,7 @@ subscription_reschedule(void) streaming_message_t *sm; int error; if (reenter) return; + reenter = 1; lock_assert(&global_lock);