Browse Source

Only start the blockupdate thread if we're not in proxy mode

master
Con Kolivas 11 years ago
parent
commit
29a8235c64
  1. 3
      src/stratifier.c

3
src/stratifier.c

@ -1757,7 +1757,8 @@ int stratifier(proc_instance_t *pi)
create_pthread(&pth_stratum_sender, stratum_sender, ckp); create_pthread(&pth_stratum_sender, stratum_sender, ckp);
cklock_init(&workbase_lock); cklock_init(&workbase_lock);
create_pthread(&pth_blockupdate, blockupdate, ckp); if (!ckp->proxy)
create_pthread(&pth_blockupdate, blockupdate, ckp);
mutex_init(&stats_lock); mutex_init(&stats_lock);
create_pthread(&pth_statsupdate, statsupdate, ckp); create_pthread(&pth_statsupdate, statsupdate, ckp);

Loading…
Cancel
Save