aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/conf/storewatcher_windows.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 04:16:04 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-02-28 08:05:02 +0100
commit9ea46af463d6f195a2cb6d990be702d10e01eb65 (patch)
treee9ced18b3272875520c43f6ffea0c7e07cc8438a /conf/storewatcher_windows.go
parentipc: implement event system with pipes (diff)
downloadwireguard-windows-9ea46af463d6f195a2cb6d990be702d10e01eb65.tar.xz
wireguard-windows-9ea46af463d6f195a2cb6d990be702d10e01eb65.zip
manager: wire up tunnels changed notifier
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'conf/storewatcher_windows.go')
-rw-r--r--conf/storewatcher_windows.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/conf/storewatcher_windows.go b/conf/storewatcher_windows.go
index f3f38fef..ddfc8b92 100644
--- a/conf/storewatcher_windows.go
+++ b/conf/storewatcher_windows.go
@@ -46,8 +46,8 @@ func startWatchingConfigDir() {
log.Fatalf("Unable to wait on config directory watcher: %v", err)
}
- for _, cb := range storeCallbacks {
- cb()
+ for cb := range storeCallbacks {
+ cb.cb()
}
err = findNextChangeNotification(h)