Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GracefulTermination when GameServer get deleted (googleforgames#3141)
Current SDKGracefulTermination implementation uses gsStateChannel which get updated in sendGameServerUpdate. However, when GameServer gets deleted (e.g. when fleet updates), sendGameServerUpdate will not be triggered because updateState() will skip update in this case (gs.IsBeingDeleted() returns true). Therefore SDK server will blocks even SDK.Shutdown() has been called. This PR solves the issue by explicitly updating gsStateChannel when * GS is being deleted * Current SDK server state is Shutdown * State of GS is not Shutdown.
- Loading branch information