浏览代码

add deadline for communicator initial exchange

/develop/windows-delay
Ruo-Ping Dong 4 年前
当前提交
53ba9d86
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs

2
com.unity.ml-agents/Runtime/Communicator/RpcCommunicator.cs


ChannelCredentials.Insecure);
m_Client = new UnityToExternalProto.UnityToExternalProtoClient(channel);
var result = m_Client.Exchange(WrapMessage(unityOutput, 200));
var result = m_Client.Exchange(WrapMessage(unityOutput, 200), deadline: DateTime.Now.AddSeconds(1));
var inputMessage = m_Client.Exchange(WrapMessage(null, 200));
unityInput = inputMessage.UnityInput;
#if UNITY_EDITOR

正在加载...
取消
保存