aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-27 21:36:42 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-27 21:36:42 +0100
commitbc8991269206afab6800fec88e3c6db0ad1e4349 (patch)
tree450d318bde91ff3ef7801e1fb842c1f94e17e536
parentinstaler: add tsaware, dep, and high entropy aslr to installer (diff)
downloadwireguard-windows-bc8991269206afab6800fec88e3c6db0ad1e4349.tar.xz
wireguard-windows-bc8991269206afab6800fec88e3c6db0ad1e4349.zip
ui: if we're raised before initiation, spin the queues a bit
-rw-r--r--ui/managewindow.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ui/managewindow.go b/ui/managewindow.go
index 6ba49e65..0caf2357 100644
--- a/ui/managewindow.go
+++ b/ui/managewindow.go
@@ -202,6 +202,12 @@ func (mtw *ManageTunnelsWindow) WndProc(hwnd win.HWND, msg uint32, wParam, lPara
return 0
}
case raiseMsg:
+ if mtw.tunnelsPage == nil || mtw.tabs == nil {
+ mtw.Synchronize(func() {
+ mtw.SendMessage(msg, wParam, lParam)
+ })
+ return 0
+ }
if !mtw.Visible() {
mtw.tunnelsPage.listView.SelectFirstActiveTunnel()
if mtw.tabs.Pages().Len() != 3 {