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()
1285
1285
SendBatchedMessages ( kvp . Key , kvp . Value ) ;
1286
1286
}
1287
1287
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 ( ) ;
1292
1292
1293
1293
DisposeInternals ( ) ;
1294
1294
You can’t perform that action at this time.
0 commit comments