Fix end state of cancelled requests in Mac implementation
Don't set the state to State_Failed if the request was cancelled.
This commit is contained in:
parent
70e7861a7d
commit
4e1bece87e
1 changed files with 4 additions and 1 deletions
|
|
@ -84,7 +84,10 @@
|
|||
wxLogTrace(wxTRACE_WEBREQUEST, "Request %p: didCompleteWithError, error=%s",
|
||||
request, wxCFStringRefFromGet([error description]).AsString());
|
||||
|
||||
request->SetState(wxWebRequest::State_Failed, wxCFStringRefFromGet(error.localizedDescription).AsString());
|
||||
if ( error.code == NSURLErrorCancelled )
|
||||
request->SetState(wxWebRequest::State_Cancelled);
|
||||
else
|
||||
request->SetState(wxWebRequest::State_Failed, wxCFStringRefFromGet(error.localizedDescription).AsString());
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue