mirror of
https://github.com/safing/portbase
synced 2025-09-02 10:40:39 +00:00
Fix cleaner start condition
This commit is contained in:
parent
34e076f9ff
commit
210017b42e
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue