Browse Source

Stop all work from the current pool if it's a stratum pool once it is disconnected since it will be invalid upon reconnecting.

Con Kolivas 13 years ago
parent
commit
ed3a95aa1a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      miner.c

+ 2 - 0
miner.c

@@ -5516,6 +5516,8 @@ static void *stratum_thread(void *userdata)
 			 * the memory if we don't discard their records. */
 			 * the memory if we don't discard their records. */
 			clear_stratum_shares(pool);
 			clear_stratum_shares(pool);
 			clear_pool_work(pool);
 			clear_pool_work(pool);
+			if (pool == current_pool())
+				restart_threads();
 
 
 			if (initiate_stratum(pool) && auth_stratum(pool))
 			if (initiate_stratum(pool) && auth_stratum(pool))
 				continue;
 				continue;