1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-22 12:34:27 +00:00

Disconnect from pool, if auth is failed

This commit is contained in:
elbandi 2014-04-26 00:47:53 +02:00 committed by Jan Berdajs
parent 3eb22b215e
commit c469ff923a

2
util.c
View File

@ -1867,6 +1867,8 @@ bool auth_stratum(struct pool *pool)
applog(LOG_INFO, "%s JSON stratum auth failed: %s", get_pool_name(pool), ss); applog(LOG_INFO, "%s JSON stratum auth failed: %s", get_pool_name(pool), ss);
free(ss); free(ss);
suspend_stratum(pool);
goto out; goto out;
} }