Skip to content

fix: end TransportConnect profiler marker on early returns in ConnectEventHandler#4005

Merged
NoelStephensUnity merged 2 commits into
develop-2.0.0from
fix/transport-connect-profiler-marker-early-return
Jun 2, 2026
Merged

fix: end TransportConnect profiler marker on early returns in ConnectEventHandler#4005
NoelStephensUnity merged 2 commits into
develop-2.0.0from
fix/transport-connect-profiler-marker-early-return

Conversation

@mnachury-unity
Copy link
Copy Markdown
Contributor

@mnachury-unity mnachury-unity commented Jun 1, 2026

Purpose of this PR

s_TransportConnect.Begin(); was called at the top of ConnectEventHandler but two early return paths (duplicate server transport ID and duplicate client connect event) exited without calling EndSample, causing the 'Missing Profiler.EndSample' error surfaced by the MultipleConnectMessagesNoop playmode tests in multiplayer tools.

Jira ticket

Link to related jira ticket (Use the smart commits). Short version (e.g. MTT-123) also works and gets auto-linked

N/A

Changelog

N/A

Documentation

  • No documentation changes or additions were necessary.
  • Includes documentation for previously-undocumented public API entry points.
  • Includes edits to existing public API documentation.

Testing & QA (How your changes can be verified during release Playtest)

Functional Testing

Manual testing :

  • Manual testing done

Automated tests:

  • Covered by existing automated tests
  • Covered by new automated tests

Does the change require QA team to:

  • Review automated tests?
  • Execute manual tests?
  • Provide feedback about the PR?

If any boxes above are checked the QA team will be automatically added as a PR reviewer.

Backports

Backport required for NGO 3, not for NGO 1 (no already connected early return case)

…EventHandler

BeginSample was called at the top of ConnectEventHandler but two early
return paths (duplicate server transport ID and duplicate client connect
event) exited without calling EndSample, causing the 'Missing
Profiler.EndSample' error surfaced by the MultipleConnectMessagesNoop
playmode tests.
@mnachury-unity mnachury-unity requested a review from a team as a code owner June 1, 2026 17:48
@cla-assistant-unity
Copy link
Copy Markdown

cla-assistant-unity Bot commented Jun 1, 2026

CLA assistant check
All committers have signed the CLA.

@mnachury-unity mnachury-unity changed the title Fix: end TransportConnect profiler marker on early returns in ConnectEventHandler fix: end TransportConnect profiler marker on early returns in ConnectEventHandler Jun 1, 2026
Copy link
Copy Markdown
Member

@NoelStephensUnity NoelStephensUnity left a comment

Choose a reason for hiding this comment

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

Thank you for finding and fixing this!

@NoelStephensUnity NoelStephensUnity merged commit 7fd6ab9 into develop-2.0.0 Jun 2, 2026
23 checks passed
@NoelStephensUnity NoelStephensUnity deleted the fix/transport-connect-profiler-marker-early-return branch June 2, 2026 14:28
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.

2 participants