Skip to content

Commit 5fd343c

Browse files
committed
BrowserProcess - Make STA Thread and minor fixes
- Make STA Thread - Minor fixes
1 parent aa5d77e commit 5fd343c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

CefSharp.OutOfProcess.BrowserProcess/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ public class Program
1010
{
1111
private static bool _disposed;
1212

13+
[STAThread]
1314
public static int Main(string[] args)
1415
{
1516
Cef.EnableHighDPISupport();
@@ -33,7 +34,7 @@ public static int Main(string[] args)
3334

3435
Cef.Initialize(settings, performDependencyCheck:true, browserProcessHandler: browserProcessHandler);
3536

36-
Task.Run(() =>
37+
_ = Task.Run(() =>
3738
{
3839
parentProcess.WaitForExit();
3940

@@ -42,7 +43,7 @@ public static int Main(string[] args)
4243
return;
4344
}
4445

45-
CefThread.ExecuteOnUiThread(() =>
46+
_ = CefThread.ExecuteOnUiThread(() =>
4647
{
4748
Cef.QuitMessageLoop();
4849

0 commit comments

Comments
 (0)