diff --git a/util.c b/util.c index 2345cf3b45..ea5061a14e 100644 --- a/util.c +++ b/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);