Catch JVM incompatible library JNA error when initializing Discord
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -78,7 +78,7 @@ public class DiscordService implements AutoCloseable
|
|||||||
discordRPC = DiscordRPC.INSTANCE;
|
discordRPC = DiscordRPC.INSTANCE;
|
||||||
discordEventHandlers = new DiscordEventHandlers();
|
discordEventHandlers = new DiscordEventHandlers();
|
||||||
}
|
}
|
||||||
catch (UnsatisfiedLinkError e)
|
catch (Error e)
|
||||||
{
|
{
|
||||||
log.warn("Failed to load Discord library, Discord support will be disabled.");
|
log.warn("Failed to load Discord library, Discord support will be disabled.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user