From c469ff923af9c72259056f744585afacf0e5b803 Mon Sep 17 00:00:00 2001 From: elbandi Date: Sat, 26 Apr 2014 00:47:53 +0200 Subject: [PATCH] Disconnect from pool, if auth is failed --- util.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util.c b/util.c index 97ad9a79..128a0479 100644 --- a/util.c +++ b/util.c @@ -1867,6 +1867,8 @@ bool auth_stratum(struct pool *pool) applog(LOG_INFO, "%s JSON stratum auth failed: %s", get_pool_name(pool), ss); free(ss); + suspend_stratum(pool); + goto out; }