Fixed empty json output

This commit is contained in:
Thulinma 2017-01-19 10:24:53 +01:00
parent 35fbafc831
commit 40a06701bf

View file

@ -46,7 +46,7 @@ namespace Mist {
}
bool OutJSON::onFinish(){
if (!jsonp.size()){
if (!jsonp.size() && !first){
myConn.SendNow("]);\n\n", 5);
}
myConn.close();