diff options
author | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-04-10 14:39:28 +0200 |
---|---|---|
committer | Alexander Neumann <alexander.neumann@picos-software.com> | 2019-04-23 11:04:59 +0200 |
commit | 60e2ee8922e64f1453a4b2e1b880fd20932e3fa9 (patch) | |
tree | f6fd3b1633031eb4f3945f6457103102c06ff4ba /ui/manage_tunnels.go | |
parent | ui: implement [de]activation of tunnels via tray (diff) | |
download | wireguard-windows-60e2ee8922e64f1453a4b2e1b880fd20932e3fa9.tar.xz wireguard-windows-60e2ee8922e64f1453a4b2e1b880fd20932e3fa9.zip |
ui: use Synchronize method for cross-goroutine calls to walk
Signed-off-by: Alexander Neumann <alexander.neumann@picos-software.com>
Diffstat (limited to 'ui/manage_tunnels.go')
-rw-r--r-- | ui/manage_tunnels.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/manage_tunnels.go b/ui/manage_tunnels.go index 815dee00..9e3711b6 100644 --- a/ui/manage_tunnels.go +++ b/ui/manage_tunnels.go @@ -132,7 +132,9 @@ func (mtw *ManageTunnelsWindow) setup() error { // TODO: teardown in Dispose() t := time.NewTicker(time.Second) for range t.C { - mtw.updateConfView() + mtw.Synchronize(func() { + mtw.updateConfView() + }) } }() |