|
@@ -112,7 +112,12 @@ namespace InABox.Rpc
|
|
|
where TResult : IRpcCommandResult
|
|
|
{
|
|
|
if (!IsConnected())
|
|
|
- throw new RpcException($"Transport Disconnected: {typeof(TCommand).Name}()", RpcError.DISCONNECTED);
|
|
|
+ {
|
|
|
+ if (!Connect(CancellationToken.None))
|
|
|
+ throw new RpcException($"Transport Disconnected: {typeof(TCommand).Name}()", RpcError.DISCONNECTED);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|