diff --git a/api/main.go b/api/main.go index 63f3c76..e022f89 100644 --- a/api/main.go +++ b/api/main.go @@ -35,7 +35,7 @@ func start() error { // start api auth token cleaner authFnLock.Lock() defer authFnLock.Unlock() - if authFn == nil { + if authFn != nil { module.NewTask("clean api auth tokens", cleanAuthTokens).Repeat(time.Minute) }