1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 14:58:01 +00:00

Avoid applog while ch_lock is held.

This commit is contained in:
Con Kolivas 2013-04-15 11:13:48 +10:00
parent 29f0ac77da
commit b948669a4f

View File

@ -3588,8 +3588,9 @@ static void set_curblock(char *hexstr, unsigned char *hash)
free(current_fullhash);
current_fullhash = bin2hex(block_hash_swap, 32);
get_timestamp(blocktime, &block_timeval);
applog(LOG_INFO, "New block: %s... diff %s", current_hash, block_diff);
cg_wunlock(&ch_lock);
applog(LOG_INFO, "New block: %s... diff %s", current_hash, block_diff);
}
/* Search to see if this string is from a block that has been seen before */