Commit 7e3ca570490edb92cc0646d61d821e15d4552c3d

Con Kolivas 2013-03-09T10:41:36

Set sockd to false should curl setup fail on stratum.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/util.c b/util.c
index 7ae378a..fad9b08 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;