From 210017b42ea5d621b5d08cfca19ca352fc8218f3 Mon Sep 17 00:00:00 2001 From: Daniel Date: Sat, 27 Jun 2020 14:52:56 +0200 Subject: [PATCH] Fix cleaner start condition --- api/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }