aa
This commit is contained in:
@@ -184,6 +184,16 @@ func (t *TcpClient) getPrintConn(key string) net.Conn {
|
||||
}
|
||||
}
|
||||
|
||||
func (t *TcpClient) getPrintStatusTime(key string) time.Time {
|
||||
t.RLock()
|
||||
defer t.RUnlock()
|
||||
if t.Clients[key] != nil {
|
||||
return t.Clients[key].StatusTime
|
||||
} else {
|
||||
return utils.ZeroTimeValue
|
||||
}
|
||||
}
|
||||
|
||||
func (t *TcpClient) isExistMsg(key string) bool {
|
||||
t.RLock()
|
||||
defer t.RUnlock()
|
||||
|
||||
Reference in New Issue
Block a user