Fix cleaner start condition

This commit is contained in:
Daniel 2020-06-27 14:52:56 +02:00 committed by GitHub
parent 34e076f9ff
commit 210017b42e
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
authFnLock.Lock()
defer authFnLock.Unlock()
if authFn == nil {
if authFn != nil {
module.NewTask("clean api auth tokens", cleanAuthTokens).Repeat(time.Minute)
}