mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-09-27 20:11:15 +02:00
fix(discord-rpc): remove unusued code
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user