1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 20:44:19 +00:00

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

This commit is contained in:
Con Kolivas 2012-12-19 20:53:11 +11:00
parent 8dbb3fa2f9
commit a07e0155bc

View File

@ -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;