Fix expiry timer

This commit is contained in:
bad 2021-10-17 23:14:53 +02:00
parent 0fcb27311e
commit 036552bac1

View file

@ -41,9 +41,5 @@ func (s *Session) SetExpireTimer(newTime *uint32) {
} }
func (s *Session) resetExpireTimer() { func (s *Session) resetExpireTimer() {
if s.ExpiryInterval == 0 {
s.expireTimer.Stop()
} else {
s.expireTimer.Reset(s.ExpiryInterval) s.expireTimer.Reset(s.ExpiryInterval)
}
} }