From 20746db2702781fece185679b0c72a0a90cba25b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Thu, 5 Feb 2015 14:01:47 +1100 Subject: [PATCH] Check against chosen_server in the server watchdog --- src/generator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generator.c b/src/generator.c index 1368985e..59ca9401 100644 --- a/src/generator.c +++ b/src/generator.c @@ -1747,7 +1747,7 @@ static void server_watchdog(ckpool_t *ckp, server_instance_t *cursi) last_t = now_t; /* Is this the highest priority server already? */ - if (cursi == ckp->servers[0]) + if (cursi == ckp->servers[ckp->chosen_server]) return; if (ckp->proxy)