mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
ChanViewer: If catalog download fails, don't try to parse response JSON
This commit is contained in:
parent
54ed6a888d
commit
103c2749ce
1 changed files with 6 additions and 2 deletions
|
@ -26,8 +26,12 @@ void ThreadCatalogModel::update()
|
|||
|
||||
job->on_finish = [job, this](bool success) {
|
||||
auto* response = job->response();
|
||||
dbg() << "job finished! success=" << success << ", response=" << response;
|
||||
dbg() << "payload size: " << response->payload().size();
|
||||
dbg() << "Catalog download finished, success=" << success << ", response=" << response;
|
||||
|
||||
if (!success)
|
||||
return;
|
||||
|
||||
dbg() << "Catalog payload size: " << response->payload().size();
|
||||
|
||||
auto json = JsonValue::from_string(response->payload());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue