Skip to content

Commit

Permalink
Merge pull request #766 from chris-pcguy/bfgminer
Browse files Browse the repository at this point in the history
Fixed typo which lead to a crash. (Fixes #763)
  • Loading branch information
luke-jr authored Oct 25, 2018
2 parents 17d2d8e + 00489a3 commit 3ae3e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3ae3e16

Please sign in to comment.