Resolved #4151 - Discord library load will now catch failed attempts properly

This commit is contained in:
Yair Morgenstern 2021-06-25 16:46:18 +03:00
parent e6850b857a
commit 79b3fb6de4

View File

@ -215,7 +215,8 @@ internal object DesktopLauncher {
} catch (ex: Exception) {
}
}
} catch (ex: Exception) {
} catch (ex: Throwable) {
// This needs to be a Throwable because if we can't find the discord_rpc library, we'll get a UnsatisfiedLinkError, which is NOT an exception.
println("Could not initialize Discord")
}
}