1
This commit is contained in:
@@ -255,14 +255,12 @@ func (t *TcpClient) setPrintStatus(key string, status int) {
|
||||
}
|
||||
}
|
||||
|
||||
func (t *TcpClient) setPrintStatusTime(c net.Conn, status int, key string) {
|
||||
func (t *TcpClient) setPrintStatusTime(key string) {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
if t.Clients[key] != nil {
|
||||
//t.Clients[key].Status = status
|
||||
t.Clients[key].StatusTime = time.Now()
|
||||
t.Clients[key].C = c
|
||||
t.Clients[key].Status = status
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user