Skip to content

OnlineServices: Shutdown HTTP manager before WebSocket - #74

Open
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/shutdown-order
Open

OnlineServices: Shutdown HTTP manager before WebSocket#74
seer-by-sentry[bot] wants to merge 1 commit into
mainfrom
seer/shutdown-order

Conversation

@seer-by-sentry

Copy link
Copy Markdown

Fixes CLIENT-FP. The issue was that: HTTP completion callback executed after dependent objects were destroyed, causing a use-after-free in std::function cleanup.

Reordered the shutdown sequence in NGMP_OnlineServicesManager::Shutdown() to ensure that the HTTP manager is shut down before the WebSocket. This is to ensure that all HTTP callbacks complete before the WebSocket is destroyed, preventing potential issues with dangling pointers or access violations.

This fix was generated by Seer in Sentry, triggered automatically. 👁️ Run ID: 1907161

Not quite right? Click here to continue debugging with Seer.

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.

0 participants