Merge pull request #479 from rubyist/fix-json

output valid json when there are no clients
This commit is contained in:
Vaxry 2022-08-06 01:06:21 +02:00 committed by GitHub
commit ccd68049f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,7 +102,8 @@ R"#({
} }
// remove trailing comma // remove trailing comma
result.pop_back(); if (result != "[")
result.pop_back();
result += "]"; result += "]";
} else { } else {