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.
This commit is contained in:
Adam Sutton 2013-09-05 23:46:43 +01:00
parent 2b909fe580
commit 997ccee895

View file

@ -185,6 +185,7 @@ subscription_reschedule(void)
streaming_message_t *sm;
int error;
if (reenter) return;
reenter = 1;
lock_assert(&global_lock);