Commit c737a43
committed
fix: stale connection config hash and a batched entry skipped by a deregister
Both raised by the automated review on PR #4123.
GetConfig caches, and ClearConfigHash only ran on shutdown, so a GetConfig
call made before the session started cached a hash built from the default
ActiveTransformSyncMode. Initialize then captured the authored mode and the
server compared connecting clients against the stale hash, rejecting them
for a configuration mismatch. Clear the cache where the mode is captured.
RunDeltaCheck iterates by index so an instance that despawns from within its
own state update callback cannot invalidate the iteration, but Deregister
swaps the last registered instance into the vacated slot and the increment
then stepped straight over it. Its entry was already complete, so it was a
tick of delay for no reason.1 parent dfa358c commit c737a43
2 files changed
Lines changed: 10 additions & 2 deletions
File tree
- com.unity.netcode.gameobjects/Runtime
- Components
- Core
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | | - | |
618 | 616 | | |
619 | 617 | | |
620 | 618 | | |
| 619 | + | |
621 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
622 | 626 | | |
623 | 627 | | |
624 | 628 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1258 | 1258 | | |
1259 | 1259 | | |
1260 | 1260 | | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1261 | 1265 | | |
1262 | 1266 | | |
1263 | 1267 | | |
| |||
0 commit comments