Skip to content

Commit

Permalink
fix: drain timeout not breaking loop, timeout drain variable referenc…
Browse files Browse the repository at this point in the history
…ed instead of period
  • Loading branch information
rsafonseca authored Oct 31, 2023
1 parent 5d3bf8e commit 9d9ac36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,8 @@ func (app *App) Start() {
break loop
case <-timeoutTimer.C:
logger.Log.Warnf("Session drain has reached maximum timeout. %d sessions will be immediately terminated", app.sessionPool.GetSessionCount())
case <-time.After(app.config.Session.Drain.Timeout):
break loop
case <-time.After(app.config.Session.Drain.Period):
logger.Log.Infof("Waiting for all sessions to finish: %d sessions remaining...", app.sessionPool.GetSessionCount())
}
}
Expand Down

0 comments on commit 9d9ac36

Please sign in to comment.