summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-10 01:06:00 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-10 01:06:00 -0300
commit484cea05874fc18b942cc2e42cb0178af6388de0 (patch)
treee82decbd35c23ba1373f8b75713f26a553f82221
parent4732cff1b23694d98f9a55609c1e21bfeb0f9000 (diff)
downloadrenpy-484cea05874fc18b942cc2e42cb0178af6388de0.tar.gz
renpy-484cea05874fc18b942cc2e42cb0178af6388de0.tar.bz2
renpy-484cea05874fc18b942cc2e42cb0178af6388de0.tar.xz
renpy-484cea05874fc18b942cc2e42cb0178af6388de0.zip
Do not attempt to shutdown Discord if it was never started in first place*
*: i.e. if disabled; But can be disabled while running. Then we just ignore this.
-rw-r--r--game/discord.rpy3
1 files changed, 2 insertions, 1 deletions
diff --git a/game/discord.rpy b/game/discord.rpy
index 9d6148e..fda547a 100644
--- a/game/discord.rpy
+++ b/game/discord.rpy
@@ -69,7 +69,8 @@ label quit:
python:
try:
stdout("Shutdown requested, cleaning up...")
- discord_rpc.shutdown()
+ if persistent.discord:
+ discord_rpc.shutdown()
stdout("Thanks for playing the Mana Launcher.")
except:
pass