Skip to content

Commit b9507b3

Browse files
committed
RPC タイムアウト処理時に待機中リクエストがなければ早期リターンする
1 parent 00f3106 commit b9507b3

File tree

1 file changed

+9
-0
lines changed
  • SoraUnitySdkExamples/Assets/SoraUnitySdk

1 file changed

+9
-0
lines changed

SoraUnitySdkExamples/Assets/SoraUnitySdk/Sora.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,15 @@ void HandleRpcInternal()
13651365
responseJson));
13661366
}
13671367

1368+
// レスポンス待ちリクエストがなければ抜けます
1369+
lock (rpcLock)
1370+
{
1371+
if (pendingRpcRequests.Count == 0)
1372+
{
1373+
return;
1374+
}
1375+
}
1376+
13681377
// レスポンス待ちリクエストのタイムアウト処理を行います
13691378
List<PendingRpc> timeoutTargets = new List<PendingRpc>();
13701379
var nowMillis = GetNowMillis();

0 commit comments

Comments
 (0)