File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
com.unity.netcode.gameobjects/Runtime/Transports/UTP Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1285,10 +1285,10 @@ public override void Shutdown()
12851285 SendBatchedMessages ( kvp . Key , kvp . Value ) ;
12861286 }
12871287
1288- // The above flush only puts the message in UTP internal buffers, need the flush send
1289- // job to execute to actually get things out on the wire. This will also ensure any
1290- // disconnect messages are sent out.
1291- m_Driver . ScheduleFlushSend ( default ) . Complete ( ) ;
1288+ // The above flush only puts the message in UTP internal buffers, need an update to
1289+ // actually get the messages on the wire. (Normally a flush send would be sufficient,
1290+ // but there might be disconnect messages and those require an update call.)
1291+ m_Driver . ScheduleUpdate ( ) . Complete ( ) ;
12921292
12931293 DisposeInternals ( ) ;
12941294
You can’t perform that action at this time.
0 commit comments