Skip to content

Commit 84e0415

Browse files
committed
Core - JavascriptCallbackProxy::ExecuteWithTimeoutAsync return failure task
The failure task wasn't being returned (surprised VC++ actually compiled).
1 parent dadb4fa commit 84e0415

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

CefSharp.Core/Internals/JavascriptCallbackProxy.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,12 @@ namespace CefSharp
5555

5656
return doneCallback.Value->Task;
5757
}
58-
else
59-
{
60-
auto invalidFrameResponse = gcnew JavascriptResponse();
61-
invalidFrameResponse->Success = false;
62-
invalidFrameResponse->Message = "Frame with Id:" + _callback->FrameId + " is no longer valid.";
6358

64-
Task::FromResult(invalidFrameResponse);
65-
}
59+
auto invalidFrameResponse = gcnew JavascriptResponse();
60+
invalidFrameResponse->Success = false;
61+
invalidFrameResponse->Message = "Frame with Id:" + _callback->FrameId + " is no longer valid.";
62+
63+
return Task::FromResult(invalidFrameResponse);
6664
}
6765

6866
CefRefPtr<CefProcessMessage> JavascriptCallbackProxy::CreateDestroyMessage()

0 commit comments

Comments
 (0)