Permalink
Browse files

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

  • Loading branch information...
1 parent 85b1d42 commit 1c82b0cb4d01e9b8f3ca4c00243c80c99fba4df2 @staxmanade staxmanade committed Jul 6, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 1c82b0c

Please sign in to comment.