File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed
com.unity.netcode.gameobjects/Runtime/Transports/UTP Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -944,11 +944,8 @@ private bool ProcessEvent()
944944 return false ;
945945 }
946946
947- private JobHandle m_FlushSendJobHandle ;
948-
949947 internal override void EarlyUpdate ( )
950948 {
951- m_FlushSendJobHandle . Complete ( ) ;
952949 if ( m_Driver . IsCreated )
953950 {
954951 if ( m_ProtocolType == ProtocolType . RelayUnityTransport && m_Driver . GetRelayConnectionStatus ( ) == RelayConnectionStatus . AllocationInvalid )
@@ -985,15 +982,15 @@ internal override void PostLateUpdate()
985982
986983 // Schedule a flush send as the last transport action for the
987984 // current frame.
988- m_FlushSendJobHandle = m_Driver . ScheduleFlushSend ( default ) ;
989- }
985+ m_Driver . ScheduleFlushSend ( default ) . Complete ( ) ;
990986
991987#if MULTIPLAYER_TOOLS_1_0_0_PRE_7
992- if ( m_NetworkManager )
993- {
994- ExtractNetworkMetrics ( ) ;
995- }
988+ if ( m_NetworkManager )
989+ {
990+ ExtractNetworkMetrics ( ) ;
991+ }
996992#endif
993+ }
997994 base . PostLateUpdate ( ) ;
998995 }
999996
You can’t perform that action at this time.
0 commit comments