From 97071780ae193f8156bd30c81736d91c8e701ddb Mon Sep 17 00:00:00 2001 From: Joway Date: Wed, 29 Nov 2023 17:32:44 +0800 Subject: [PATCH] fix: stop timer when read triggered by err (#296) --- connection_impl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection_impl.go b/connection_impl.go index eb99f1c1..77212de6 100644 --- a/connection_impl.go +++ b/connection_impl.go @@ -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 }