From a07e0155bc1fa9101b3ec9c28751333f24bc9cea Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Wed, 19 Dec 2012 20:53:11 +1100 Subject: [PATCH] Stop all work from the current pool if it's a stratum pool once it is disconnected since it will be invalid upon reconnecting. --- cgminer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgminer.c b/cgminer.c index 55dce4bd..4af6ad64 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4608,6 +4608,8 @@ static void *stratum_thread(void *userdata) * the memory if we don't discard their records. */ clear_stratum_shares(pool); clear_pool_work(pool); + if (pool == current_pool()) + restart_threads(); if (initiate_stratum(pool) && auth_stratum(pool)) continue;