From d745e7135d1c2ab4ca1709310d3a6c56f24d4c39 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 24 Feb 2015 22:00:38 +1100 Subject: [PATCH] Remove the old proxy on a reconnect so we don't send shares nowhere --- src/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generator.c b/src/generator.c index 829feac1..7b4e5141 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1039,6 +1039,7 @@ static bool parse_reconnect(proxy_instance_t *proxi, json_t *val) newsi = ckzalloc(sizeof(server_instance_t)); mutex_lock(&gdata->lock); + HASH_DEL(gdata->proxies, proxi); high_id = proxi->id >> 32; /* Use the high bits for the reconnect id */ high_id++; high_id <<= 32;