File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
MLAPI/NetworkingManagerComponents/Core Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
using System . Collections . Generic ;
2
+ using System . Linq ;
2
3
using UnityEngine ;
3
4
4
5
namespace MLAPI . Internal
@@ -17,16 +18,15 @@ internal static ulong GenerateMessageId()
17
18
18
19
internal static void CheckTimeouts ( )
19
20
{
20
- while ( responseAdded . Count > 0 && Time . time - responseAdded [ 0 ] > pendingResponses [ responseAdded . Keys [ 0 ] ] . Timeout )
21
+ while ( responseAdded . Count > 0 && Time . time - responseAdded [ responseAdded . Keys [ 0 ] ] > pendingResponses [ responseAdded . Keys [ 0 ] ] . Timeout )
21
22
{
22
23
ulong key = responseAdded . Keys [ 0 ] ;
23
24
24
25
RpcResponseBase response = pendingResponses [ key ] ;
25
26
response . IsDone = true ;
26
27
response . IsSuccessful = false ;
27
-
28
- responseAdded . Remove ( key ) ;
29
- pendingResponses . Remove ( key ) ;
28
+
29
+ Remove ( key ) ;
30
30
}
31
31
}
32
32
You can’t perform that action at this time.
0 commit comments