mirror of
https://github.com/duanhf2012/origin.git
synced 2026-05-13 02:17:35 +08:00
优化rpc连接状态判断
This commit is contained in:
@@ -317,7 +317,7 @@ func (client *Client) OnClose(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (client *Client) IsConnected() bool {
|
func (client *Client) IsConnected() bool {
|
||||||
return client.conn!=nil && client.conn.IsConnected()==true
|
return client.bSelfNode || (client.conn!=nil && client.conn.IsConnected()==true)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (client *Client) GetId() int{
|
func (client *Client) GetId() int{
|
||||||
|
|||||||
Reference in New Issue
Block a user