mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
Core - IDownloadItemCallback incorrectly disposed on Pause/Resume
Resolves #3145
This commit is contained in:
@@ -50,18 +50,18 @@ namespace CefSharp
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
//Only free the callback when cancel called
|
||||
//Need to be able to pause/resume #3145
|
||||
_callback->Pause();
|
||||
|
||||
delete this;
|
||||
}
|
||||
|
||||
virtual void Resume()
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
//Only free the callback when cancel called
|
||||
//Need to be able to pause/resume #3145
|
||||
_callback->Resume();
|
||||
|
||||
_callback = NULL;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user