Browse Source

Retry stratum if initiation fails for any reason after we have sent something (assuming there is more older variants we can try)

Luke Dashjr 12 years ago
parent
commit
7676509d93
1 changed files with 2 additions and 2 deletions
  1. 2 2
      util.c

+ 2 - 2
util.c

@@ -2119,6 +2119,8 @@ resend:
 		goto out;
 	}
 
+	recvd = true;
+	
 	if (!socket_full(pool, true)) {
 		applog(LOG_DEBUG, "Timed out waiting for response in initiate_stratum");
 		goto out;
@@ -2128,8 +2130,6 @@ resend:
 	if (!sret)
 		goto out;
 
-	recvd = true;
-
 	val = JSON_LOADS(sret, &err);
 	free(sret);
 	if (!val) {