summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-09 19:40:18 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-09 19:40:18 -0300
commitbf3e7340744907efad45eb7dc76c1769fd63966c (patch)
tree491167adc1b7020f6e27c182c828ab90d7bad310
parent45d6cbc1f98efcb1e54784111fb26b31c54efe8c (diff)
downloadrenpy-bf3e7340744907efad45eb7dc76c1769fd63966c.tar.gz
renpy-bf3e7340744907efad45eb7dc76c1769fd63966c.tar.bz2
renpy-bf3e7340744907efad45eb7dc76c1769fd63966c.tar.xz
renpy-bf3e7340744907efad45eb7dc76c1769fd63966c.zip
Improve failure handling on quit event
-rw-r--r--game/discord.rpy11
1 files changed, 8 insertions, 3 deletions
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
+