mirror of
https://github.com/GOSTSec/sgminer
synced 2025-03-10 04:31:03 +00:00
Must initialise the donorpool mutex or it fails on windows.
This commit is contained in:
parent
16dce491f2
commit
f6d35a70a8
2
main.c
2
main.c
@ -5583,6 +5583,8 @@ int main (int argc, char *argv[])
|
||||
if (!get_dondata(&donationpool.rpc_url, &donationpool.rpc_userpass))
|
||||
opt_donation = 0.0;
|
||||
else {
|
||||
if (unlikely(pthread_mutex_init(&donationpool.pool_lock, NULL)))
|
||||
quit (1, "Failed to pthread_mutex_init in add donpool");
|
||||
donationpool.enabled = true;
|
||||
donationpool.pool_no = MAX_POOLS;
|
||||
if (!pool_active(&donationpool, false))
|
||||
|
Loading…
x
Reference in New Issue
Block a user