From ab4d3a672f930d59506d9fee50468a48442e32db Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 7 Feb 2015 18:24:47 +1100 Subject: [PATCH] Set notified flag to false immediately upon setting a new proxy --- src/stratifier.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index 1e165940..da2759aa 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1824,6 +1824,10 @@ static void set_proxy(sdata_t *sdata, const char *buf) proxy = __proxy_by_id(sdata, id); sdata->proxy = proxy; mutex_unlock(&sdata->proxy_lock); + + /* We will receive a notification immediately after this and it should + * be the flag to reconnect clients. */ + proxy->notified = false; } static int stratum_loop(ckpool_t *ckp, proc_instance_t *pi)