From 95102da85492a0f0d13e1bdfb8c08fee9b63b00b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 24 Feb 2015 17:50:38 +1100 Subject: [PATCH] Only set current proxy to a parent proxy --- src/stratifier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index dcec3ec8..aa29cf4a 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1294,7 +1294,7 @@ static void update_subscribe(ckpool_t *ckp, const char *cmd) /* Is this a replacement proxy for the current one */ mutex_lock(&sdata->proxy_lock); - if (sdata->proxy && sdata->proxy->low_id == proxy->low_id) + if (sdata->proxy && sdata->proxy->low_id == proxy->low_id && !proxy->subid) sdata->proxy = proxy; mutex_unlock(&sdata->proxy_lock);