From 955e413bea01403fd2cbee8856f6f8a9eaa47fae Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 25 Feb 2015 23:33:39 +1100 Subject: [PATCH] Issue reconnect when an upstream pool recovers --- src/generator.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/generator.c b/src/generator.c index c1ec4518..cc3657de 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1970,6 +1970,7 @@ static void *proxy_recv(void *arg) /* Wait 30 seconds before declaring this upstream pool alive * to prevent switching to unstable pools. */ if (!alive && (!current_proxy(gdata) || time(NULL) - proxi->reconnect_time > 30)) { + reconnect_generator(ckp); LOGWARNING("Proxy %d:%s recovered", proxi->low_id, proxi->si->url); proxi->reconnect_time = 0; alive = true;