Skip to content

Commit a9be5ae

Browse files
committed
fix: fix ConnetionError when updating presence (Closes #186)
1 parent 9e2f4ce commit a9be5ae

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugin/common/src/main/kotlin/dev/azn9/plugins/discord/rpc/connection/DiscordIpcConnection.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ class DiscordIpcConnection(override val appId: Long, private val userCallback: U
7575
try {
7676
if (running)
7777
ipcClient.activityManager.setActivity(presence?.toNative())
78+
} catch (e: ConnectionError) {
79+
// Ignore
7880
} catch (e: TimeoutCancellationException) {
7981
DiscordPlugin.LOG.debugLazy { "Error sending presence, timed out" }
8082
} catch (e: Exception) {

0 commit comments

Comments
 (0)