Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing an issue where the form.close was happening on the wrong thread

  • Loading branch information...
commit 1c82b0cb4d01e9b8f3ca4c00243c80c99fba4df2 1 parent 85b1d42
@staxmanade staxmanade authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/StatLight.Core/WebBrowser/SelfHostedWebBrowser.cs
View
2  src/StatLight.Core/WebBrowser/SelfHostedWebBrowser.cs
@@ -66,7 +66,7 @@ private static FormWindowState GetBrowserVisibilityState(bool browserVisible)
public void Stop()
{
_logger.Debug("webBrowser.Stop()");
- _form.Close();
+ _form.Invoke(new Action(() => _form.Close()));
_browserThread = null;
}
Please sign in to comment.
Something went wrong with that request. Please try again.