1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-11-29 22:48:19 +02:00

Add Azure Provider

This commit is contained in:
Eelco Cramer
2015-11-09 09:28:34 +01:00
committed by Jehiah Czebotar
parent d5a332c3f2
commit 10f47e325b
9 changed files with 272 additions and 19 deletions

View File

@@ -41,9 +41,8 @@ func WatchForUpdates(filename string, done <-chan bool, action func()) {
for {
select {
case _ = <-done:
log.Printf("Shutting down watcher for: %s",
filename)
return
log.Printf("Shutting down watcher for: %s", filename)
break
case event := <-watcher.Events:
// On Arch Linux, it appears Chmod events precede Remove events,
// which causes a race between action() and the coming Remove event.