Skip to content

fix: Fixed a few memory leak cases when shutting down NetworkManager … #1466

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

Conversation

andrews-unity
Copy link
Contributor

Original PR: #1323

ShadauxCat and others added 2 commits November 24, 2021 01:08
…during Incoming Message Queue processing (#1323)

* fix: Fixed memory leak on shutdown

* fix: Fixed a few memory leak cases when shutting down NetworkManager during Incoming Message Queue processing

* standards check

* Fixed test not cleaning up quite correctly.

* -Reworked the way shutdown is handled so it can't be processed while handling incoming messages.
-Added tests for both ways to shut down to make sure they both work correctly
-Fixed an issue in the snapshot system that was causing the new tests to fail

* standards

* Fixed broken test, slight naming change to be more accurate.
@andrews-unity andrews-unity enabled auto-merge (squash) November 24, 2021 12:05
@0xFA11
Copy link
Contributor

0xFA11 commented Nov 24, 2021

has a dependency to #1312

@andrews-unity andrews-unity merged commit 6a75011 into release/1.0.0 Nov 24, 2021
@andrews-unity andrews-unity deleted the backport/1.0.0-fix-fix_memory_leak_on_shutdown branch November 24, 2021 22:46
mollstam pushed a commit to Keepsake-Games/com.unity.netcode.gameobjects that referenced this pull request Feb 13, 2023
…during Incoming Message Queue processing (Unity-Technologies#1323) (Unity-Technologies#1466)

* fix: Fixed memory leak on shutdown

* fix: Fixed a few memory leak cases when shutting down NetworkManager during Incoming Message Queue processing

* standards check

* Fixed test not cleaning up quite correctly.

* -Reworked the way shutdown is handled so it can't be processed while handling incoming messages.
-Added tests for both ways to shut down to make sure they both work correctly
-Fixed an issue in the snapshot system that was causing the new tests to fail

* standards

* Fixed broken test, slight naming change to be more accurate.

Co-authored-by: Jaedyn Draper <284434+ShadauxCat@users.noreply.github.com>
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