优化rpc连接状态判断

This commit is contained in:
boyce
2020-11-30 12:00:10 +08:00
parent 7b964b205e
commit 0eea4dc446

View File

@@ -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{