diff --git a/desktop/src/mindustry/desktop/DesktopLauncher.java b/desktop/src/mindustry/desktop/DesktopLauncher.java index e20a4208c4..72a73a00fa 100644 --- a/desktop/src/mindustry/desktop/DesktopLauncher.java +++ b/desktop/src/mindustry/desktop/DesktopLauncher.java @@ -118,17 +118,19 @@ public class DesktopLauncher extends ClientLauncher{ testMobile = Seq.with(args).contains("-testMobile"); if(useDiscord){ - try{ - DiscordRPC.connect(discordID); - Log.info("Initialized Discord rich presence."); - Runtime.getRuntime().addShutdownHook(new Thread(DiscordRPC::close)); - }catch(NoDiscordClientException none){ - //don't log if no client is found - useDiscord = false; - }catch(Throwable t){ - useDiscord = false; - Log.warn("Failed to initialize Discord RPC - you are likely using a JVM <16."); - } + Threads.daemon(() -> { + try{ + DiscordRPC.connect(discordID); + Log.info("Initialized Discord rich presence."); + Runtime.getRuntime().addShutdownHook(new Thread(DiscordRPC::close)); + }catch(NoDiscordClientException none){ + //don't log if no client is found + useDiscord = false; + }catch(Throwable t){ + useDiscord = false; + Log.warn("Failed to initialize Discord RPC - you are likely using a JVM <16."); + } + }); } if(useSteam){ diff --git a/gradle.properties b/gradle.properties index 75a9789f5a..b368b24836 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,4 +26,4 @@ org.gradle.caching=true org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.connectionTimeout=100000 android.enableR8.fullMode=false -archash=9b4648505a +archash=65d654d634