Browse Source

Stratum: If old protocol fails as well, try to resume again next time around

Luke Dashjr 13 years ago
parent
commit
5c72aafa24
1 changed files with 0 additions and 8 deletions
  1. 0 8
      util.c

+ 0 - 8
util.c

@@ -1761,14 +1761,6 @@ out:
 		}
 	} else {
 		if (!oldproto) {
-			/* Reset the sessionid used for stratum resuming in case the pool
-			* does not support it, or does not know how to respond to the
-			* presence of the sessionid parameter. */
-			mutex_lock(&pool->pool_lock);
-			free(pool->sessionid);
-			free(pool->nonce1);
-			pool->sessionid = pool->nonce1 = NULL;
-			mutex_unlock(&pool->pool_lock);
 			applog(LOG_DEBUG, "Failed to resume stratum, trying afresh");
 			oldproto = true;
 			goto resend;