This commit is contained in:
deepch
2024-01-08 17:35:54 +03:00
parent 9d21d056dd
commit 975d994507
9 changed files with 452 additions and 64 deletions

View File

@@ -258,7 +258,10 @@ func (self *Conn) RxBytes() uint64 {
}
func (self *Conn) Close() (err error) {
return self.netconn.Close()
if self.netconn != nil {
return self.netconn.Close()
}
return
}
func (self *Conn) pollCommand() (err error) {