mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-04 06:54:45 +08:00
优化rpc连接状态判断
This commit is contained in:
@@ -317,7 +317,7 @@ func (client *Client) OnClose(){
|
||||
}
|
||||
|
||||
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{
|
||||
|
||||
Reference in New Issue
Block a user