1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Avoid applog in recalloc_sock.

This commit is contained in:
Con Kolivas 2013-04-15 12:16:05 +10:00
parent 69c203d88a
commit 81549c5bff

3
util.c
View File

@ -1021,7 +1021,8 @@ static void recalloc_sock(struct pool *pool, size_t len)
if (new < pool->sockbuf_size)
return;
new = new + (RBUFSIZE - (new % RBUFSIZE));
applog(LOG_DEBUG, "Recallocing pool sockbuf to %d", new);
// Avoid potentially recursive locking
// applog(LOG_DEBUG, "Recallocing pool sockbuf to %d", new);
pool->sockbuf = realloc(pool->sockbuf, new);
if (!pool->sockbuf)
quit(1, "Failed to realloc pool sockbuf in recalloc_sock");