From 40a06701bf8d433d2c864e9160bf2d8171178644 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 19 Jan 2017 10:24:53 +0100 Subject: [PATCH] Fixed empty json output --- src/output/output_json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/output_json.cpp b/src/output/output_json.cpp index 67661d8e..6c7096f9 100644 --- a/src/output/output_json.cpp +++ b/src/output/output_json.cpp @@ -46,7 +46,7 @@ namespace Mist { } bool OutJSON::onFinish(){ - if (!jsonp.size()){ + if (!jsonp.size() && !first){ myConn.SendNow("]);\n\n", 5); } myConn.close();