mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
Core - MethodRunnerQueue add additional IsCancellationRequested checks
This commit is contained in:
@@ -32,8 +32,18 @@ namespace CefSharp.Internals
|
||||
|
||||
public void Enqueue(MethodInvocation methodInvocation)
|
||||
{
|
||||
if(cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Task.Factory.StartNew(() =>
|
||||
{
|
||||
if (cancellationTokenSource.IsCancellationRequested)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var result = ExecuteMethodInvocation(methodInvocation);
|
||||
|
||||
var handler = MethodInvocationComplete;
|
||||
|
||||
Reference in New Issue
Block a user