From b495a51b76ab024174d31f7077b25f9526ad4791 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 1 Oct 2012 18:50:32 +1000 Subject: [PATCH] Comment update. --- cgminer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cgminer.c b/cgminer.c index 71021a40..64262320 100644 --- a/cgminer.c +++ b/cgminer.c @@ -4156,9 +4156,11 @@ static void *stratum_thread(void *userdata) pool->swork.clean = false; gen_stratum_work(pool, &work); if (test_work_current(&work)) { + /* Only accept a work restart if this stratum + * connection is from the current pool */ if (pool == current_pool()) { restart_threads(); - applog(LOG_NOTICE, "Stratum requested work restart"); + applog(LOG_NOTICE, "Stratum from pool %d requested work restart", pool->pool_no); } } else applog(LOG_NOTICE, "Stratum from pool %d detected new block", pool->pool_no);