fix(discord-rpc): remove unusued code

This commit is contained in:
MasterAcnolo
2026-09-10 15:00:00 +02:00
parent 6d99d5f91c
commit f343fbd148

View File

@@ -123,14 +123,6 @@ async function stopRPC() {
try { try {
if (intervalId) clearInterval(intervalId); 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(); await rpc.destroy();
} catch (err) { } catch (err) {