Browse Source

stratum auth can be unset if we fail to authorise on subsequent calls to auth_stratum which undoes the requirement of setting it in one place so set it in pool_active.

Con Kolivas 13 years ago
parent
commit
07605fad60
2 changed files with 1 additions and 2 deletions
  1. 1 0
      cgminer.c
  2. 0 2
      util.c

+ 1 - 0
cgminer.c

@@ -4265,6 +4265,7 @@ retry_stratum:
 			return false;
 			return false;
 		if (!auth_stratum(pool))
 		if (!auth_stratum(pool))
 			return false;
 			return false;
+		pool->stratum_auth = true;
 		pool->idle = false;
 		pool->idle = false;
 		init_stratum_thread(pool);
 		init_stratum_thread(pool);
 		return true;
 		return true;

+ 0 - 2
util.c

@@ -1205,8 +1205,6 @@ out:
 	if (val)
 	if (val)
 		json_decref(val);
 		json_decref(val);
 
 
-	pool->stratum_auth = ret;
-
 	return ret;
 	return ret;
 }
 }