列车pc仿真调整
This commit is contained in:
parent
4666c84860
commit
a13a01f99f
3
third_party/tcp/tcp_client.go
vendored
3
third_party/tcp/tcp_client.go
vendored
@ -58,7 +58,8 @@ func (c *TcpClient) Close() {
|
||||
}
|
||||
}
|
||||
func (c *TcpClient) Send(data []byte) error {
|
||||
if c.conn == nil {
|
||||
|
||||
if c == nil || c.conn == nil {
|
||||
slog.Error("tcp client send error,conn is nil")
|
||||
return fmt.Errorf("TCP未连接车载PC仿真")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user