Browse Source

Merge commit 'd3bf0b0' into bfgminer

Conflicts:
	util.c
Luke Dashjr 13 years ago
parent
commit
aca52543c2
1 changed files with 3 additions and 2 deletions
  1. 3 2
      util.c

+ 3 - 2
util.c

@@ -1715,9 +1715,10 @@ void suspend_stratum(struct pool *pool)
 	mutex_lock(&pool->stratum_lock);
 	pool->stratum_active = false;
 	pool->stratum_auth = false;
-	mutex_unlock(&pool->stratum_lock);
-	CLOSESOCKET(pool->sock);
+	curl_easy_cleanup(pool->stratum_curl);
+	pool->stratum_curl = NULL;
 	pool->sock = INVSOCK;
+	mutex_unlock(&pool->stratum_lock);
 }
 
 void dev_error(struct cgpu_info *dev, enum dev_reason reason)