From f343fbd148c329f915195b981b611735be251e1b Mon Sep 17 00:00:00 2001 From: MasterAcnolo Date: Thu, 10 Sep 2026 15:00:00 +0200 Subject: [PATCH] fix(discord-rpc): remove unusued code --- app/discordRPC.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/discordRPC.js b/app/discordRPC.js index 6dfcbb3..101b8ff 100644 --- a/app/discordRPC.js +++ b/app/discordRPC.js @@ -123,14 +123,6 @@ async function stopRPC() { try { if (intervalId) clearInterval(intervalId); - /** - * Ensures RPC connection AND the underlying socket exist - * before attempting to clear activity to prevent crash. - */ - if (rpc.transport && rpc.transport.socket) { - await rpc.clearActivity(); - } - await rpc.destroy(); } catch (err) {