Browse Source

Fixed RPCClient.Ping Error

Frank van den Bos 2 năm trước cách đây
mục cha
commit
8c77ac6764
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      InABox.Client.RPC/RPCClient.cs

+ 2 - 0
InABox.Client.RPC/RPCClient.cs

@@ -222,6 +222,8 @@ namespace InABox.Rpc
         {
             try
             {
+                if (!_transport.IsConnected())
+                    _transport.Connect();
                 _transport.Send<RpcPingCommand, RpcPingParameters, RpcPingResult>(new RpcPingParameters());
                 return true;
             }