From 32ac6318a24ba9f07a84808a43bf5fcce6e3b4bf Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 28 Jan 2016 07:47:58 +1100 Subject: [PATCH] Don't try to broadcast messages to monitored clients in node mode --- src/stratifier.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stratifier.c b/src/stratifier.c index ae482593..88c84285 100644 --- a/src/stratifier.c +++ b/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) {