From 934d41a44e8559f6d2548aca42ed52a7d26a887c Mon Sep 17 00:00:00 2001 From: MysterD Date: Wed, 11 May 2022 18:10:27 -0700 Subject: [PATCH] Prevent joining a Discord lobby when you're already hosting --- src/pc/network/discord/discord.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/pc/network/discord/discord.c b/src/pc/network/discord/discord.c index 36dab9bc..4343d8e1 100644 --- a/src/pc/network/discord/discord.c +++ b/src/pc/network/discord/discord.c @@ -166,9 +166,13 @@ static bool ns_discord_initialize(enum NetworkType networkType) { } // create lobby - if (networkType == NT_SERVER) { discord_lobby_create(); } + if (networkType == NT_SERVER) { + discord_lobby_create(); + gActivityLock = true; + } else { + gActivityLock = false; + } - gActivityLock = false; gDiscordInitialized = true; LOGFILE_INFO(LFT_DISCORD, "initialized");