Skip to content

Commit 1899c8f

Browse files
committed
update comment desc
1 parent 2fe3f12 commit 1899c8f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

session_state.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ func (sm *stateMachine) CheckSessionTime(session *session, now time.Time) {
157157

158158
func (sm *stateMachine) CheckResetTime(session *session, now time.Time) {
159159
if session.EnableResetSeqTime {
160-
// The last time we checked the reset time was before the configured reset time
161-
// and the current time is after the configured reset time.
162-
// so that means we've crossed the reset time boundary.
160+
// If we have crossed the reset time boundary in between checks, we send the reset
163161
if session.LastCheckedResetSeqTime.Before(session.ResetSeqTime) && now.After(session.ResetSeqTime) && session.stateMachine.State.IsConnected() {
164162
session.sendLogonInReplyTo(true, nil)
165163
}

0 commit comments

Comments
 (0)