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