Skip to content
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

fix: handling of host disconnect #486

Merged
merged 2 commits into from Mar 4, 2022

Conversation

LPLafontaineB
Copy link
Contributor

Description (*)

This PR makes it so when the host gets disconnected by the API, it will be properly sent back to the main menu.

Related Pull Requests

Issue Number(s) (*)

Fixes issue(s): MTT-2367

Manual testing scenarios

  1. Start hosting a game using photon relay
  2. When in-game, pull your network cable or disconnect from wifi
  3. See that after a time, Photon will disconnect you, and BossRoom will send you back to main menu

Questions or comments

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@LPLafontaineB LPLafontaineB added 2-Easy This PR is trivial and can be reviewed quickly 1-Needs Review PR needs attention from the assignee and reviewers labels Feb 22, 2022
@SamuelBellomo
Copy link
Collaborator

This should be cherry picked for GDC as well

Copy link
Collaborator

@fernando-cortez fernando-cortez left a comment

Choose a reason for hiding this comment

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

I tested this with the new lobby and with both IP & Unity Relay sessions and the host was not being sent back into main menu. OnDisconnectOrTimeout may not even have been invoked.

Was this issue only happening on Photon Relay?

@fernando-cortez fernando-cortez added 2-Reviewed with Comments PR requires owner's attention and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Mar 1, 2022
@LPLafontaineB
Copy link
Contributor Author

LPLafontaineB commented Mar 1, 2022

Was this issue only happening on Photon Relay?

Yes, so now this might not be needed. Unless being disconnected by the API as a host could happen in another case that I'm not seeing?

@fernando-cortez fernando-cortez added 3-Good to Merge and removed 2-Reviewed with Comments PR requires owner's attention labels Mar 4, 2022
@LPLafontaineB LPLafontaineB merged commit 89f9918 into develop Mar 4, 2022
@LPLafontaineB LPLafontaineB deleted the fix/handling-host-disconnect branch March 4, 2022 21:32
LPLafontaineB added a commit that referenced this pull request Mar 4, 2022
LPLafontaineB added a commit that referenced this pull request Mar 8, 2022
SamuelBellomo added a commit that referenced this pull request Mar 8, 2022
…ocal

* release/GDC2022:
  Cherrypick: bigger floor tiles, bossroom.unity scene merge conflict resolved with unity merge tool (#519)
  Cherrypick: lobby visual rework, mainmenu.unity scene merge conflict resolved with unity merge tool (#520)
  cherrypick: Boss and run VFX Optimizations (#514) (#521)
  feat: loading screen (GDC version) (#495)
  fix: client writing to NetworkVariable inside ServerCharacterMovement (#517)
  fix: imps spawning issues when late joining (#497)
  Adding handling of host disconnect (#486) (#509)
  fix: NREs when trying to quit (#516)
  hack fix: disabling client side rate limiting for GDC, real fix should come on develop (#500)
  fix: NetworkAnimator being called on clients (#512)
  fix: username changing before game (#499)
  feat: IP connection window inside main menu (#502) (#508)

# Conflicts:
#	Assets/BossRoom/Scenes/Startup.unity
SamuelBellomo added a commit that referenced this pull request Mar 9, 2022
…I-stats

* release/GDC2022:
  lobby fix: Removing quit when lobby detects host left. (#505)
  Cherrypick: bigger floor tiles, bossroom.unity scene merge conflict resolved with unity merge tool (#519)
  Cherrypick: lobby visual rework, mainmenu.unity scene merge conflict resolved with unity merge tool (#520)
  cherrypick: Boss and run VFX Optimizations (#514) (#521)
  feat: loading screen (GDC version) (#495)
  fix: client writing to NetworkVariable inside ServerCharacterMovement (#517)
  fix: imps spawning issues when late joining (#497)
  Adding handling of host disconnect (#486) (#509)
  fix: NREs when trying to quit (#516)
  hack fix: disabling client side rate limiting for GDC, real fix should come on develop (#500)
  fix: NetworkAnimator being called on clients (#512)
  fix: username changing before game (#499)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-Easy This PR is trivial and can be reviewed quickly 3-Good to Merge GDC-cherrypick
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants