Commit 263dd4b
fix: network manager does not clean up if exception is thrown while starting (#3864)
* fix
Fixes the issue where NetworkManager would not clean up if an exception was thrown while it was starting.
* Move all connection tests into the Connection folder
* Catch any exceptions in PrefabHandler.Instantiate
* Add tests for exceptions thrown during startup
* Update CHANGELOG
* Fix code formatting and remove unused code
* Move more connection tests
* Fix tests
* Update CHANGELOG
* Rename test file
---------
Co-authored-by: Emma <emma.mcmillan@unity3d.com>1 parent 8ba35cd commit 263dd4b
File tree
21 files changed
+256
-34
lines changed- com.unity.netcode.gameobjects
- Runtime
- Core
- Spawning
- Tests
- Editor/Transports
- Runtime
- Connection
- NetworkObject
- Prefabs
- TestHelpers
21 files changed
+256
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
Lines changed: 40 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1323 | 1323 | | |
1324 | 1324 | | |
1325 | 1325 | | |
1326 | | - | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
1327 | 1337 | | |
1328 | 1338 | | |
1329 | 1339 | | |
| |||
1342 | 1352 | | |
1343 | 1353 | | |
1344 | 1354 | | |
1345 | | - | |
| 1355 | + | |
1346 | 1356 | | |
1347 | | - | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
1348 | 1360 | | |
1349 | | - | |
1350 | 1361 | | |
1351 | 1362 | | |
1352 | 1363 | | |
| |||
1373 | 1384 | | |
1374 | 1385 | | |
1375 | 1386 | | |
1376 | | - | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
1377 | 1397 | | |
1378 | 1398 | | |
1379 | 1399 | | |
| |||
1391 | 1411 | | |
1392 | 1412 | | |
1393 | 1413 | | |
1394 | | - | |
| 1414 | + | |
1395 | 1415 | | |
1396 | 1416 | | |
1397 | 1417 | | |
| |||
1419 | 1439 | | |
1420 | 1440 | | |
1421 | 1441 | | |
1422 | | - | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
| 1450 | + | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1423 | 1454 | | |
1424 | 1455 | | |
1425 | 1456 | | |
| |||
1437 | 1468 | | |
1438 | 1469 | | |
1439 | 1470 | | |
1440 | | - | |
| 1471 | + | |
| 1472 | + | |
1441 | 1473 | | |
1442 | 1474 | | |
1443 | 1475 | | |
| |||
Lines changed: 18 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
291 | 299 | | |
292 | 300 | | |
293 | 301 | | |
| |||
297 | 305 | | |
298 | 306 | | |
299 | 307 | | |
300 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
301 | 317 | | |
302 | 318 | | |
303 | 319 | | |
| |||
Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
158 | | - | |
| 158 | + | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments