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,6 +102,7 @@ R"#({
} }
// remove trailing comma // remove trailing comma
if (result != "[")
result.pop_back(); result.pop_back();
result += "]"; result += "]";