diff --git a/pkg/connection/connection.go b/pkg/connection/connection.go index acef62a..97cbc08 100644 --- a/pkg/connection/connection.go +++ b/pkg/connection/connection.go @@ -230,7 +230,7 @@ func (c *connection) ModWriteChanSize(n int) { if c.option.WriteChanSize > 0 { panic(ErrConnectionPanic) } - if c.option.WriteChanSize == 0 { + if n == 0 { return }