1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Only set stratum auth once to prevent multiple threads being started.

This commit is contained in:
Con Kolivas 2013-03-07 21:41:01 +11:00
parent 3db4d6f0eb
commit d7c4be30ba

View File

@ -4997,7 +4997,10 @@ retry_stratum:
return false;
if (!auth_stratum(pool))
return false;
pool->stratum_auth = true;
/* Only set stratum_auth once to prevent multiple threads
* being started */
if (pool_tset(pool, &pool->stratum_auth))
return true;
pool->idle = false;
init_stratum_thread(pool);
return true;