outposts/proxy: fix session not expiring correctly due to miscalculation

closes #1976

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer
2021-12-21 13:10:57 +01:00
parent 8a60a7e26f
commit 3c048a1921
4 changed files with 13 additions and 12 deletions

View File

@ -194,12 +194,7 @@ func (ac *APIController) startWSHealth() {
func (ac *APIController) startIntervalUpdater() {
logger := ac.logger.WithField("loop", "interval-updater")
ticker := time.NewTicker(5 * time.Minute)
initial := false
for ; true; <-ticker.C {
if !initial {
initial = true
continue
}
logger.Debug("Running interval update")
err := ac.OnRefresh()
if err != nil {