Skip to content

Conversation

@fernando-cortez
Copy link
Contributor

Description

Issue Number(s)

Contribution checklist

  • Tests have been added for boss room and/or utilities pack
  • Release notes have been added to the project changelog file and/or package changelog file
  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • JIRA ticket ID is in the PR title or at least one commit message
  • Include the ticket ID number within the body message of the PR to create a hyperlink
  • An Index entry has been added in readme.md if applicable

@fernando-cortez fernando-cortez added the DO NOT MERGE Do not merge this PR! label Jul 21, 2023
Avoid accessing the CustomMessageManager if it no longer exists (i.e. in the middle of shutting down while shutting down)
{
// Avoid throwing an exception if you are in the middle of shutting down and either
// NetworkManager no longer exists or the CustomMessagingManager no longer exists.
if (m_NetworkManager == null || m_NetworkManager.CustomMessagingManager == null)
Copy link
Contributor

Choose a reason for hiding this comment

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

Alternately, you could change this fix to:

            if (m_NetworkManager == null || m_NetworkManager.ShutdownInProgress)
            {
                return;
            }

To work around the invoking Shutdown from within the On<Client/Server>Shutdown issue, don't invoke NetworkManager.Shutdown() if you are not listening within the offline connection state handler.
{
m_LobbyServiceFacade.EndTracking();
m_ConnectionManager.NetworkManager.Shutdown();
if (m_ConnectionManager.NetworkManager.IsListening)
Copy link
Contributor

Choose a reason for hiding this comment

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

This would be the fix for the issue with m_ShuttingDown being set to true again.
We might be able to add one more simple fix into the v1.5.2 branch if it isn't too late and then we can revert these updates.

remove white spaces
@fernando-cortez
Copy link
Contributor Author

Closing this PR as the 2022.3.7f1 LTS upgrade PR was already merged and an upcoming PR will address the NGO version bump.

@Elfi0Kuhndorf Elfi0Kuhndorf deleted the test/NGOv1.5.2-project-tests branch March 31, 2025 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DO NOT MERGE Do not merge this PR!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants