From edbe863a262a95a2c6bc3dd5925b215653f34a59 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 15 Feb 2015 21:52:32 +1100 Subject: [PATCH] Only add the parent proxy to the subproxy list once --- src/generator.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/generator.c b/src/generator.c index abcbd008..07a7fc1b 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1035,9 +1035,7 @@ static bool parse_reconnect(proxy_instance_t *proxi, json_t *val) newproxi->cs = &newsi->cs; newproxi->cs->ckp = ckp; newproxi->id = newsi->id; - newproxi->parent = newproxi; HASH_REPLACE_INT(gdata->proxies, id, newproxi, proxi); - HASH_ADD(sh, newproxi->subproxies, subid, sizeof(int), newproxi); mutex_unlock(&gdata->lock); prepare_proxy(newproxi);