This commit is contained in:
邹宗楠
2024-11-04 10:53:16 +08:00
parent 90ff64452a
commit 3251816066
3 changed files with 5 additions and 5 deletions

View File

@@ -97,7 +97,7 @@ func handleConn(c net.Conn) error {
}
t, ok := PrintObject[printNo]
if !ok || t.Clients[printNo] == nil || t.Clients[printNo].StatusTime.Second()-time.Now().Second() >= 120 {
if !ok || t.Clients[printNo] == nil || t.Clients[printNo].StatusTime.Sub(time.Now()).Seconds() >= 120 {
t = NewTcpClient()
}