Skip to content

Commit

Permalink
fix: stop timer when read triggered by err (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
joway authored Nov 29, 2023
1 parent 27be26a commit 9707178
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion connection_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ func (c *connection) waitReadWithTimeout(n int) (err error) {
return Exception(ErrReadTimeout, c.remoteAddr.String())
case err = <-c.readTrigger:
if err != nil {
return err
goto RET
}
continue
}
Expand Down

0 comments on commit 9707178

Please sign in to comment.