Skip to content

fix: RpcQueueContainer deregister from NetworkUpdateManager#453

Merged
NoelStephensUnity merged 7 commits intodevelopfrom
fix/RpcQueueContainerRegistration
Jan 22, 2021
Merged

fix: RpcQueueContainer deregister from NetworkUpdateManager#453
NoelStephensUnity merged 7 commits intodevelopfrom
fix/RpcQueueContainerRegistration

Conversation

@NoelStephensUnity
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity commented Jan 20, 2021

This fixes a bug where the RpcQueueContainer would still be receiving network update loop callbacks even though the NetworkingManager had shutdown. The noticeable side effect of the bug would be exceptions thrown within the RpcQueueProcessing class as it tried to access NetworkingManager.Singleton.rpcQueueContainer.

This fix combines the OnExiting method with the Shutdown method, removes the OnExiting method, and assures it will be deregistered from the network update loop when Shutdown is called.

This fixes the issue with the RpcQueueContainer not deregistering itself from the NetworkUpdateManager upon shutdown of the NetworkingManager.
Removing a comment that doesn't need to be there.
@jeffreyrainy suggested that the OnExiting method was confusing and it didn't make sense having more than one method to call in order to handle cleaning up and deregistering from the network update loop.
These changes refactors the method used to handle shutting down.
Removed call to ClearParameters method that was left over from legacy version when it was a static class.
After further discussions with Fraser, I am putting the ClearParameters method back.
@NoelStephensUnity NoelStephensUnity merged commit 400a2be into develop Jan 22, 2021
@NoelStephensUnity NoelStephensUnity deleted the fix/RpcQueueContainerRegistration branch March 2, 2021 21:17
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.

3 participants