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
1 changed files with 2 additions and 1 deletions

View File

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