Skip to content

fix: MTT-2991: Flush UnityTransport send queues on disconnect #1847

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 30, 2022

Conversation

simon-lemay-unity
Copy link
Contributor

Flush the UnityTransport send queues when calling DisconnectLocalClient or DisconnectRemoteClient. This brings the behavior more in line with what is happening on shutdown (it's weird to flush the queues on shutdown, but not on disconnect).

See MTT-2991 for more details.

Changelog

  • Fixed: UnityTransport send queues are now flushed when calling DisconnectLocalClient or DisconnectRemoteClient.

Testing and Documentation

  • Includes unit/integration tests.
  • No documentation changes or additions were necessary.

@simon-lemay-unity simon-lemay-unity requested a review from a team as a code owner March 28, 2022 21:05
@@ -32,6 +32,7 @@ Additional documentation and release notes are available at [Multiplayer Documen
- Fixed issue where NetworkManager would continue starting even if the NetworkTransport selected failed. (#1780)
- Fixed issue when spawning new player if an already existing player exists it does not remove IsPlayer from the previous player (#1779)
- Fixed lack of notification that NetworkManager and NetworkObject cannot be added to the same GameObject with in-editor notifications (#1777)
- `UnityTransport` send queues are now flushed when calling `DisconnectLocalClient` or `DisconnectRemoteClient`. (#1847)
Copy link
Collaborator

@NoelStephensUnity NoelStephensUnity Mar 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most likely these are both nit-picks:

  • Could you change how the fix is worded sort of like: "- Fixed issue where send queues were not being flushed when calling DisconnectLocalClient or DisconnectRemoteClient.
  • Could you move it to the top to preserver a descending order? (my OCD kicking in)

@simon-lemay-unity simon-lemay-unity enabled auto-merge (squash) March 30, 2022 05:38
@simon-lemay-unity simon-lemay-unity merged commit b11e04e into develop Mar 30, 2022
@simon-lemay-unity simon-lemay-unity deleted the fix/flush-send-queue-client-disconnect branch March 30, 2022 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants