aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/ipc_server.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 15:52:17 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-29 15:52:17 +0200
commit5996e84c044aa6b9bcfedd694fb5f297629c56e8 (patch)
treea37424f17b611c6d5d04da9fceb4a756dadf52ab /service/ipc_server.go
parentui: account for IPC failures in UI initialization (diff)
downloadwireguard-windows-5996e84c044aa6b9bcfedd694fb5f297629c56e8.tar.xz
wireguard-windows-5996e84c044aa6b9bcfedd694fb5f297629c56e8.zip
service: pass global state with notification
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--service/ipc_server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/service/ipc_server.go b/service/ipc_server.go
index 4dd36b2d..0b0b3a05 100644
--- a/service/ipc_server.go
+++ b/service/ipc_server.go
@@ -294,9 +294,9 @@ func notifyAll(notificationType NotificationType, ifaces ...interface{}) {
func IPCServerNotifyTunnelChange(name string, state TunnelState, err error) {
if err == nil {
- notifyAll(TunnelChangeNotificationType, name, state, "")
+ notifyAll(TunnelChangeNotificationType, name, state, trackedTunnelsGlobalState(), "")
} else {
- notifyAll(TunnelChangeNotificationType, name, state, err.Error())
+ notifyAll(TunnelChangeNotificationType, name, state, trackedTunnelsGlobalState(), err.Error())
}
}