Skip to content

Commit

Permalink
fix keep alive issue
Browse files Browse the repository at this point in the history
  • Loading branch information
lonnywong committed Feb 4, 2024
1 parent f44addf commit 50a26ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tssh/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ type connWithTimeout struct {
func (c *connWithTimeout) Read(b []byte) (n int, err error) {
if !c.firstRead {
n, err = c.Conn.Read(b)
if err != nil {
if err == nil {
now := time.Now()
lastServerAliveTime.Store(&now)
}
Expand Down

0 comments on commit 50a26ce

Please sign in to comment.