Skip to content

Commit

Permalink
fix: fix ConnetionError when updating presence (Closes #186)
Browse files Browse the repository at this point in the history
  • Loading branch information
Azn9 committed Oct 5, 2024
1 parent 9e2f4ce commit a9be5ae
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ class DiscordIpcConnection(override val appId: Long, private val userCallback: U
try {
if (running)
ipcClient.activityManager.setActivity(presence?.toNative())
} catch (e: ConnectionError) {
// Ignore
} catch (e: TimeoutCancellationException) {
DiscordPlugin.LOG.debugLazy { "Error sending presence, timed out" }
} catch (e: Exception) {
Expand Down

0 comments on commit a9be5ae

Please sign in to comment.