Skip to content

Commit

Permalink
rm readTrigger error
Browse files Browse the repository at this point in the history
  • Loading branch information
joway committed Nov 28, 2023
1 parent 0a1eaea commit f5610b8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions connection_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,10 @@ func (c *connection) waitRead(n int) (err error) {
return Exception(ErrConnClosed, "wait read")
default:
err = <-c.readTrigger
if err != nil {
return err
}
continue
//if err != nil {
// return err
//}
}
}
return nil
Expand Down Expand Up @@ -447,9 +448,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 {
// return err
//}
continue
}
}
Expand Down

0 comments on commit f5610b8

Please sign in to comment.