Commit 654e413
* fix
Just return from OnClientDisconnectFromServer when the server is shutting down as there is no point in doing ownership cleanup or client disconnected notification messages at that point.
* Fix
Approaching this fix a different way since we still should send out client disconnect notifications and such.
* fix
Server or host was not sending disconnect when it shutdown.
* update
When a client disconnects itself or is disconnected by the server, it now returns its client identifier.
Server or host shutdown sequence now includes a "soft shutdown" where the server-host will send out disconnection messages to all clients with the reason for the client being disconnected.
* update
the test project exit button script is now a bit more intelligent with how it handles exiting and now logs the reason for disconnection.
* fix - testproject
fixing exceptions when certain missing properties are not set (primarily buttons or toggles)
* test
updating tests for changes.
* fix
Don't allow a host or server to disconnect its local client.
* update
Adding changelog entries
* style
removing unused namespace.
* fix
Fixes issue with NetworkVariable and NetworkList throwing exceptions upon shutdown.
* Test
Validates that setting NetworkVariables or NetworkList values during OnNetworkDespawn does not throw an exception.
* update
adding change log entry
* style
fixing warning message about setting network variable/list values during a shutdown.
* test
Removing unrequired null check
* style
remove the cr/lf after some else if statments
* Minor formatting changes.
* update
Adjusting warning message language.
Adjusting when the send queue is processed.
* update
reverting back moving the MessageManager?.ProcessSendQueues(); within Shutdown and removing the migration of that out of OnClientDisconnectFromServer.
---------
Co-authored-by: Kitty Draper <kitty.draper@unity3d.com>
1 parent fda32b4 commit 654e413
File tree
12 files changed
+299
-47
lines changed- com.unity.netcode.gameobjects
- Components
- Runtime
- Connection
- Core
- NetworkVariable
- Tests/Runtime
- testproject/Assets
- Scripts
- Tests/Manual
- InSceneObjectParentingTests
- Scripts
12 files changed
+299
-47
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | | - | |
| 38 | + | |
| 39 | + | |
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
836 | | - | |
837 | | - | |
| 836 | + | |
838 | 837 | | |
839 | 838 | | |
840 | 839 | | |
| |||
1053 | 1052 | | |
1054 | 1053 | | |
1055 | 1054 | | |
1056 | | - | |
1057 | | - | |
| 1055 | + | |
1058 | 1056 | | |
1059 | 1057 | | |
1060 | 1058 | | |
| |||
Lines changed: 36 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
350 | | - | |
| 350 | + | |
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
479 | | - | |
480 | 479 | | |
481 | 480 | | |
482 | 481 | | |
483 | 482 | | |
484 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
485 | 491 | | |
486 | 492 | | |
487 | 493 | | |
| |||
496 | 502 | | |
497 | 503 | | |
498 | 504 | | |
499 | | - | |
| 505 | + | |
| 506 | + | |
500 | 507 | | |
501 | | - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
502 | 511 | | |
503 | 512 | | |
504 | 513 | | |
| |||
901 | 910 | | |
902 | 911 | | |
903 | 912 | | |
| 913 | + | |
904 | 914 | | |
905 | 915 | | |
906 | 916 | | |
| |||
924 | 934 | | |
925 | 935 | | |
926 | 936 | | |
927 | | - | |
| 937 | + | |
928 | 938 | | |
929 | 939 | | |
930 | 940 | | |
| |||
943 | 953 | | |
944 | 954 | | |
945 | 955 | | |
946 | | - | |
| 956 | + | |
947 | 957 | | |
948 | 958 | | |
949 | 959 | | |
| |||
960 | 970 | | |
961 | 971 | | |
962 | 972 | | |
963 | | - | |
| 973 | + | |
964 | 974 | | |
965 | 975 | | |
966 | 976 | | |
| |||
982 | 992 | | |
983 | 993 | | |
984 | 994 | | |
985 | | - | |
| 995 | + | |
986 | 996 | | |
987 | 997 | | |
988 | 998 | | |
| |||
1033 | 1043 | | |
1034 | 1044 | | |
1035 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1036 | 1052 | | |
1037 | 1053 | | |
1038 | 1054 | | |
| |||
1077 | 1093 | | |
1078 | 1094 | | |
1079 | 1095 | | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
1085 | 1096 | | |
1086 | 1097 | | |
1087 | | - | |
1088 | | - | |
1089 | | - | |
1090 | 1098 | | |
1091 | 1099 | | |
1092 | 1100 | | |
| |||
1122 | 1130 | | |
1123 | 1131 | | |
1124 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1125 | 1136 | | |
1126 | 1137 | | |
1127 | 1138 | | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
1128 | 1142 | | |
1129 | 1143 | | |
1130 | 1144 | | |
| |||
1136 | 1150 | | |
1137 | 1151 | | |
1138 | 1152 | | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
1139 | 1159 | | |
1140 | 1160 | | |
1141 | 1161 | | |
| |||
Lines changed: 83 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
77 | 86 | | |
78 | 87 | | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
83 | 159 | | |
84 | 160 | | |
85 | 161 | | |
| |||
704 | 780 | | |
705 | 781 | | |
706 | 782 | | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
707 | 789 | | |
708 | 790 | | |
709 | 791 | | |
| |||
970 | 1052 | | |
971 | 1053 | | |
972 | 1054 | | |
973 | | - | |
974 | 1055 | | |
975 | 1056 | | |
976 | 1057 | | |
| |||
1051 | 1132 | | |
1052 | 1133 | | |
1053 | 1134 | | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | 1135 | | |
1060 | 1136 | | |
1061 | 1137 | | |
| |||
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
106 | 114 | | |
| |||
0 commit comments