-
Notifications
You must be signed in to change notification settings - Fork 575
Bugfix: properly disconnect on quit [GOMPS-324][GOMPS-327][GOMPS-385] #196
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
Bugfix: properly disconnect on quit [GOMPS-324][GOMPS-327][GOMPS-385] #196
Conversation
- The "game state" object base class now handles OnApplicationQuit() and calls StopClient(), StopServer(), or StopHost() as appropriate - There was no client-side game logic for the post-game scene, so added one (just a stub so that the base-class gets called) - Fixed a bug with shutdown logic that doesn't check whether the NetworkManager.Singleton has become null. (There may be more of these -- they're hard to find because object-destruction order is unpredictable. But I didn't see any more after starting/stopping the client a few dozen times.)
|
Also checked in [GOMPS-327] here. (Previously this bug was FIXME'd because of MLAPI problems, but those problems are contained now) |
|
A note -- [GOMPS-385] is also fixed by this checkin. That's the bug where pressing "Main Menu" on the post-game screen will crash if the host has quit. With this PR, the player will automatically leave the post-game screen as soon as the host quits, so they can't get into that invalid state. |
* release/v0.1.0-experimental: (97 commits) adding screenshots (#228) [GOMPS-352] Add audiomixer to project (#222) feature: transport picker improvements (#200) fixing issue where client disconnect boots everyone else (#229) removed GC allocs inside of AIBrain (#210) init client door with server's current value for IsOpen (#227) Photon Realtime Setup Guide for Boss Room (#225) Update README.md add link to doc (#226) Bug fix: hide icons for unimplemented attacks feature: v0.1.0 experimental updating to latest master mlapi (#220) fixing missing reference exceptions, and missing animation (#219) feat: replace with photon package (#218) Replaced LobbyPlayerArray with a NetworkList<LobbyPlayerState> (#217) ART: Warning Message fixes for models, animations, and Shader...and new App icon (#213) Updating to latest MLAPI on master (#214) null guard added inside of target action for accessing a possibly destroyed reticule (#212) [GOMPS-270] bossroom should let users specify connection port# (#205) Fix useless log error (#203) Bugfix: properly disconnect on quit [GOMPS-324][GOMPS-327][GOMPS-385] (#196) Volume control [GOMPS-373] (#195) ... # Conflicts: # README.md
OnApplicationQuit()and callsStopClient(),StopServer(), orStopHost()as appropriateEdit: another bug-fix needed the fixes from this PR, so I bundled it into the same branch: