Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Fix #2375: Crash when NTP resource is downloaded with network error.
Browse files Browse the repository at this point in the history
  • Loading branch information
iccub committed Feb 27, 2020
1 parent 2003a04 commit 958bd2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/Frontend/Browser/HomePanel/NTPDownloader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ class NTPDownloader {
}

if response.statusCode != 304 && (response.statusCode < 200 || response.statusCode > 299) {
completion(nil, nil, "Invalid Response Status Code: \(response.statusCode)")
return completion(nil, nil, "Invalid Response Status Code: \(response.statusCode)")
}

completion(data, self.parseETagResponseInfo(response), nil)
Expand Down

0 comments on commit 958bd2f

Please sign in to comment.