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 5573948323
commit e8f50fbf7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}