From bf3e7340744907efad45eb7dc76c1769fd63966c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 9 May 2021 19:40:18 -0300 Subject: Improve failure handling on quit event --- game/discord.rpy | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'game') diff --git a/game/discord.rpy b/game/discord.rpy index 0367b8a..9d6148e 100644 --- a/game/discord.rpy +++ b/game/discord.rpy @@ -65,8 +65,13 @@ label before_main_menu: return label quit: - $ stdout("Shutdown requested, cleaning up...") $ responsive=False - $ discord_rpc.shutdown() - $ stdout("Thanks for playing the Mana Launcher.") + python: + try: + stdout("Shutdown requested, cleaning up...") + discord_rpc.shutdown() + stdout("Thanks for playing the Mana Launcher.") + except: + pass return + -- cgit v1.2.3-70-g09d2