File tree Expand file tree Collapse file tree
MLAPI/NetworkingManagerComponents/Core Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
2+ using System . Linq ;
23using UnityEngine ;
34
45namespace MLAPI . Internal
@@ -17,16 +18,15 @@ internal static ulong GenerateMessageId()
1718
1819 internal static void CheckTimeouts ( )
1920 {
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 )
2122 {
2223 ulong key = responseAdded . Keys [ 0 ] ;
2324
2425 RpcResponseBase response = pendingResponses [ key ] ;
2526 response . IsDone = true ;
2627 response . IsSuccessful = false ;
27-
28- responseAdded . Remove ( key ) ;
29- pendingResponses . Remove ( key ) ;
28+
29+ Remove ( key ) ;
3030 }
3131 }
3232
You can’t perform that action at this time.
0 commit comments