Browse Source

Fixed typo which lead to a crash. (Fixes #763)

Signed-off-by: Christian Inci <chris.gh@broke-the-inter.net>
Christian Inci 7 years ago
parent
commit
00489a3c86
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);