This commit is contained in:
邹宗楠
2024-01-10 10:45:32 +08:00
parent 5cd7764c6e
commit a83617e477

View File

@@ -89,8 +89,10 @@ func handleConn(c net.Conn) error {
}
t, ok := PrintObject[printNo]
globals.SugarLogger.Debugf("======t := %s", utils.Format4Output(t, false))
if !ok {
t = NewTcpClient()
globals.SugarLogger.Debugf("======t3 := %s", utils.Format4Output(t, false))
PrintObject[printNo] = t
}
if strings.Contains(string(buffer[0:n]), "print_no_clear") { // 清理缓存