aa
This commit is contained in:
@@ -162,7 +162,9 @@ func HandleTcpMessages() {
|
||||
if tcpClient.Clients[printMsg.PrintNo] != nil {
|
||||
c = tcpClient.Clients[printMsg.PrintNo]
|
||||
data, err = buildMsg(printMsg)
|
||||
fmt.Println("2222222222222222222222222222222222")
|
||||
} else {
|
||||
fmt.Println("33333333333333333333333333333333333333")
|
||||
changePrinterStatus(printMsg.PrintNo, printerStatusOffline)
|
||||
}
|
||||
}
|
||||
@@ -177,6 +179,7 @@ func HandleTcpMessages() {
|
||||
c.Close()
|
||||
} else {
|
||||
if c != nil {
|
||||
fmt.Println("4444444444444444444444444444444444444")
|
||||
if _, err = c.Write(data); err != nil {
|
||||
globals.SugarLogger.Debugf("handleTcpMessages err [%v]", err)
|
||||
delete(tcpClient.Clients, printMsg.PrintNo)
|
||||
|
||||
Reference in New Issue
Block a user