aa
This commit is contained in:
@@ -227,7 +227,7 @@ func (t *TcpClient) isExist(key string) bool {
|
||||
func (t *TcpClient) setPrintStatus(key string, status int) {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
if t.isExist(key) {
|
||||
if t.Clients[key] != nil {
|
||||
t.Clients[key].Status = status
|
||||
t.Clients[key].StatusTime = time.Now()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user