mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 19:25:01 +00:00
ScriptCore::Evaluate(): always call WaitForSingleObject()
This commit is contained in:
@@ -80,15 +80,15 @@ namespace CefSharp
|
||||
{
|
||||
CefPostTask(TID_UI, NewCefRunnableMethod(this, &ScriptCore::UIT_Evaluate,
|
||||
browser, script));
|
||||
}
|
||||
|
||||
switch (WaitForSingleObject(_event, timeout))
|
||||
{
|
||||
case WAIT_TIMEOUT:
|
||||
throw gcnew ScriptException("Script timed out");
|
||||
case WAIT_ABANDONED:
|
||||
case WAIT_FAILED:
|
||||
throw gcnew ScriptException("Script error");
|
||||
}
|
||||
switch (WaitForSingleObject(_event, timeout))
|
||||
{
|
||||
case WAIT_TIMEOUT:
|
||||
throw gcnew ScriptException("Script timed out");
|
||||
case WAIT_ABANDONED:
|
||||
case WAIT_FAILED:
|
||||
throw gcnew ScriptException("Script error");
|
||||
}
|
||||
|
||||
if (_exception)
|
||||
|
||||
Reference in New Issue
Block a user