aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/service/ipc_server.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 14:01:42 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2019-04-30 20:19:50 +0200
commit6a998c3026c832807d0e7db99c52dba1187bbbc7 (patch)
tree456e11464978e66542d98def6b8e1374bbec34d8 /service/ipc_server.go
parentui: pick more windowsy colors (diff)
downloadwireguard-windows-6a998c3026c832807d0e7db99c52dba1187bbbc7.tar.xz
wireguard-windows-6a998c3026c832807d0e7db99c52dba1187bbbc7.zip
service: inform UIs it is time to quit so they can kill tray
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'service/ipc_server.go')
-rw-r--r--service/ipc_server.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/service/ipc_server.go b/service/ipc_server.go
index 835301b8..9ccea8ef 100644
--- a/service/ipc_server.go
+++ b/service/ipc_server.go
@@ -303,3 +303,8 @@ func IPCServerNotifyTunnelChange(name string, state TunnelState, err error) {
func IPCServerNotifyTunnelsChange() {
notifyAll(TunnelsChangeNotificationType)
}
+
+func IPCServerNotifyManagerStopping() {
+ notifyAll(ManagerStoppingNotificationType)
+ time.Sleep(time.Millisecond * 200)
+}