Browse Source

Don't try to broadcast messages to monitored clients in node mode

master
ckolivas 9 years ago
parent
commit
32ac6318a2
  1. 5
      src/stratifier.c

5
src/stratifier.c

@ -2657,6 +2657,11 @@ static void stratum_broadcast(sdata_t *sdata, json_t *val, const int msg_type)
return;
}
if (ckp->node) {
json_decref(val);
return;
}
/* Use this locking as an opportunity to test other clients. */
ck_rlock(&ckp_sdata->instance_lock);
HASH_ITER(hh, ckp_sdata->stratum_instances, client, tmp) {

Loading…
Cancel
Save