From 9edfbc8790309b0038cc56944ce9e542ed10e0d7 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 13 Feb 2015 15:08:25 +1100 Subject: [PATCH] Don't send proxy diff till it's set yet --- src/generator.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generator.c b/src/generator.c index ec558eb5..ca56ab5b 100644 --- a/src/generator.c +++ b/src/generator.c @@ -986,6 +986,10 @@ static void send_diff(ckpool_t *ckp, proxy_instance_t *proxi) if (proxi == proxy) return; + /* Not set yet */ + if (!proxi->diff) + return; + JSON_CPACK(json_msg, "{sisisf}", "proxy", proxy->id, "subproxy", proxi->id,