Open scalatron opened 4 years ago
Condition: WiFi connected, but internet unreachable. Crashes in Request.swift line 125:
Request.swift
let task = self.session.dataTask(with: request) { [unowned self, unowned sema] data, response, error in let response = response as! HTTPURLResponse // <<<< crash let headers = response.allHeaderFields ...
because response is nil.
response
nil
Condition: WiFi connected, but internet unreachable. Crashes in
Request.swift
line 125:because
response
isnil
.