This commit is contained in:
suyl
2021-07-29 15:00:35 +08:00
parent bc299677ad
commit eaff3970a0

View File

@@ -183,7 +183,9 @@ func (t *TcpClient) setPrintStatus(key string, status int) {
}
func NewTcpClient() *TcpClient {
return &TcpClient{
t := &TcpClient{
Clients: make(map[string]*PrintInfo),
}
t.RWMutex = new(sync.RWMutex)
return t
}