Skip to content

Commit

Permalink
fix: drain timeout not breaking loop
Browse files Browse the repository at this point in the history
  • Loading branch information
rsafonseca committed Oct 31, 2023
1 parent 4ec0902 commit e5903e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app.go
Expand Up @@ -452,6 +452,7 @@ func Start() {
break loop
case <-timeoutTimer.C:
logger.Log.Warnf("Session drain has reached maximum timeout. %d sessions will be immediately terminated", session.SessionCount)
break loop
case <-time.After(app.config.GetDuration("pitaya.session.drain.period")):
logger.Log.Infof("Waiting for all sessions to finish: %d sessions remaining...", session.SessionCount)
}
Expand Down

0 comments on commit e5903e2

Please sign in to comment.