Skip to content

Commit 666a115

Browse files
committed
Core - Cef.WaitForBrowsersToClose increase Wait Timeout
- 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.
1 parent 46e9249 commit 666a115

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CefSharp.Core.Runtime/Cef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ namespace CefSharp
863863
_disposables->Clear();
864864

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

868868
//A few extra ms to allow for CEF to finish
869869
Thread::Sleep(50);

CefSharp.Test/OffScreen/OffScreenBrowserBasicFacts.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ public void BrowserRefCountDecrementedOnDispose()
149149

150150
Cef.WaitForBrowsersToClose();
151151

152+
output.WriteLine("Browser Count {0}", BrowserRefCounter.Instance.Count);
153+
152154
Assert.Equal(0, BrowserRefCounter.Instance.Count);
153155
}
154156

0 commit comments

Comments
 (0)