Skip to content

Commit

Permalink
Fix: entry has already been removed when request is not handled async (
Browse files Browse the repository at this point in the history
  • Loading branch information
hjanetzek authored and tallytalwar committed Jan 18, 2019
1 parent 512ed71 commit 44e094b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/src/platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ UrlRequestHandle Platform::startUrlRequest(Url _url, UrlCallback&& _callback) {
}

// Start Platform specific url request
entry->cancelable = startUrlRequestImpl(_url, handle, entry->id);
if (startUrlRequestImpl(_url, handle, entry->id)) {
entry->cancelable = true;
}

return handle;
}
Expand Down

0 comments on commit 44e094b

Please sign in to comment.