Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay dispose of CancellationTokenSource when quitting
Quitting in Unity fires a number of events and callbacks. `MonoBehaviour.OnApplicationQuit` is called before `Application.wantsToQuit` which leads to undesired behaviour. `Application.wantsToQuit` can be used to interrupt a quit process, so you can shut down gracefully. If this is utilized, the AgonesSDK has already dispose the cancellation token and future calls will fail. Reference: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Application-wantsToQuit.html Same solution as in UniRX: neuecc/UniRx#463
- Loading branch information