aa
This commit is contained in:
@@ -183,7 +183,9 @@ func (t *TcpClient) setPrintStatus(key string, status int) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func NewTcpClient() *TcpClient {
|
func NewTcpClient() *TcpClient {
|
||||||
return &TcpClient{
|
t := &TcpClient{
|
||||||
Clients: make(map[string]*PrintInfo),
|
Clients: make(map[string]*PrintInfo),
|
||||||
}
|
}
|
||||||
|
t.RWMutex = new(sync.RWMutex)
|
||||||
|
return t
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user