优化代码

This commit is contained in:
GoEdgeLab
2023-01-12 19:02:38 +08:00
parent 894f480674
commit 0224b489c0

View File

@@ -145,6 +145,10 @@ func (this *ClientConn) Read(b []byte) (n int, err error) {
}
func (this *ClientConn) Write(b []byte) (n int, err error) {
if len(b) == 0 {
return 0, nil
}
if this.isDebugging {
this.lastWriteAt = time.Now().Unix()