From 7e3ca570490edb92cc0646d61d821e15d4552c3d Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 9 Mar 2013 10:41:36 +1100 Subject: [PATCH] Set sockd to false should curl setup fail on stratum. --- util.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/util.c b/util.c index 7ae378a3..fad9b085 100644 --- a/util.c +++ b/util.c @@ -1522,8 +1522,10 @@ bool initiate_stratum(struct pool *pool) int n2size; resend: - if (!setup_stratum_curl(pool)) + if (!setup_stratum_curl(pool)) { + sockd = false; goto out; + } sockd = true;