Browse Source

Merge pull request #766 from chris-pcguy/bfgminer

Fixed typo which lead to a crash. (Fixes #763)
Luke Dashjr 7 years ago
parent
commit
3ae3e168c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      util.c

+ 1 - 1
util.c

@@ -1833,7 +1833,7 @@ static void clear_sock(struct pool *pool)
 	mutex_lock(&pool->stratum_lock);
 	do {
 		n = 0;
-		if (pool->sock)
+		if (pool->stratum_curl)
 			curl_easy_recv(pool->stratum_curl, pool->sockbuf, RECVSIZE, &n);
 	} while (n > 0);
 	mutex_unlock(&pool->stratum_lock);