Skip to content

Commit

Permalink
Core - Cef.WaitForBrowsersToClose increase Wait Timeout
Browse files Browse the repository at this point in the history
- After upgrading to M102 shutdown appears to be taking longer, so we'll increase
  the Wait timeout from 500ms to 750ms to allow CEF a little more time to finish processing.
  • Loading branch information
amaitland committed May 31, 2022
1 parent 46e9249 commit 666a115
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CefSharp.Core.Runtime/Cef.h
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ namespace CefSharp
_disposables->Clear();

//Wait for the browsers to close
BrowserRefCounter::Instance->WaitForBrowsersToClose(500);
BrowserRefCounter::Instance->WaitForBrowsersToClose(750);

//A few extra ms to allow for CEF to finish
Thread::Sleep(50);
Expand Down
2 changes: 2 additions & 0 deletions CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public void BrowserRefCountDecrementedOnDispose()

Cef.WaitForBrowsersToClose();

output.WriteLine("Browser Count {0}", BrowserRefCounter.Instance.Count);

Assert.Equal(0, BrowserRefCounter.Instance.Count);
}

Expand Down

0 comments on commit 666a115

Please sign in to comment.