mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 11:52:44 +00: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) { |     job->on_finish = [job, this](bool success) { | ||||||
|         auto* response = job->response(); |         auto* response = job->response(); | ||||||
|         dbg() << "job finished! success=" << success << ", response=" << response; |         dbg() << "Catalog download finished, success=" << success << ", response=" << response; | ||||||
|         dbg() << "payload size: " << response->payload().size(); | 
 | ||||||
|  |         if (!success) | ||||||
|  |             return; | ||||||
|  | 
 | ||||||
|  |         dbg() << "Catalog payload size: " << response->payload().size(); | ||||||
| 
 | 
 | ||||||
|         auto json = JsonValue::from_string(response->payload()); |         auto json = JsonValue::from_string(response->payload()); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling