Skip to content

Commit

Permalink
debug: fix timer leak
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Nov 28, 2023
1 parent fa44790 commit 9471908
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions connection_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ func (c *connection) waitRead(n int) (err error) {
return Exception(ErrConnClosed, "wait read")
default:
err = <-c.readTrigger
//if err != nil {
// return err
//}
if err != nil {
return err
}
continue
}
}
Expand Down Expand Up @@ -447,9 +447,9 @@ func (c *connection) waitReadWithTimeout(n int) (err error) {
}
return Exception(ErrReadTimeout, c.remoteAddr.String())
case err = <-c.readTrigger:
//if err != nil {
// return err
//}
if err != nil {
goto RET
}
continue
}
}
Expand Down

0 comments on commit 9471908

Please sign in to comment.