Don't reset ping interval as failed commands do not recreate broken sessions

This commit is contained in:
Hendrik Hofstadt 2019-08-14 07:41:44 +02:00
parent 0299fd5d70
commit 892fb9b370
1 changed files with 0 additions and 3 deletions

View File

@ -132,9 +132,6 @@ func (s *SessionManager) SendEncryptedCommand(c *commands.CommandMessage) (comma
return nil, errors.New("no session available")
}
// Reset keepalive since we are resetting the timeout by sending a command
s.keepAlive.Reset(pingInterval)
return s.session.SendEncryptedCommand(c)
}