mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-12 20:11:51 +00:00
ChanViewer: If catalog download fails, don't try to parse response JSON
This commit is contained in:
parent
54ed6a888d
commit
103c2749ce
Notes:
sideshowbarker
2024-07-19 12:53:10 +09:00
Author: https://github.com/awesomekling
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
Add a link
Reference in a new issue