close the thing on the dead

This commit is contained in:
Kade M 2021-04-02 14:35:14 -07:00 committed by GitHub
parent 2c03f4f507
commit b30c5f365f
1 changed files with 4 additions and 0 deletions

View File

@ -96,6 +96,10 @@ class TitleState extends MusicBeatState
#if desktop
DiscordClient.initialize();
Application.current.onExit.add (function (exitCode) {
DiscordClient.shutdown();
});
#end
}