mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
Fix crash when responding to request that was previously cancelled by CEF (e.g. due to page reload)
This commit is contained in:
@@ -61,7 +61,11 @@ namespace CefSharp
|
||||
|
||||
_headers = ToHeaderMap(response->ResponseHeaders);
|
||||
|
||||
_callback->Continue();
|
||||
// If CEF has cancelled the initial request, throw away a response that comes afterwards.
|
||||
if (_callback != nullptr)
|
||||
{
|
||||
_callback->Continue();
|
||||
}
|
||||
|
||||
// Must be done AFTER CEF has been allowed to consume the headers etc. After this call is made, the SchemeHandlerWrapper
|
||||
// instance has likely been deallocated.
|
||||
|
||||
Reference in New Issue
Block a user