Merge pull request #61 from safing/fix/api-auth-token-cleaner

Fix cleaner start condition
This commit is contained in:
Daniel 2020-06-27 14:59:38 +02:00 committed by GitHub
commit fda2943c0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,7 @@ func start() error {
// start api auth token cleaner // start api auth token cleaner
authFnLock.Lock() authFnLock.Lock()
defer authFnLock.Unlock() defer authFnLock.Unlock()
if authFn == nil { if authFn != nil {
module.NewTask("clean api auth tokens", cleanAuthTokens).Repeat(time.Minute) module.NewTask("clean api auth tokens", cleanAuthTokens).Repeat(time.Minute)
} }