mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 00:56:14 +00:00
ChanViewer: If catalog download fails, don't try to parse response JSON
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user