mirror of
https://github.com/MasterAcnolo/Freedom-Loader.git
synced 2026-07-29 18:25:47 +02:00
RPC Com
This commit is contained in:
@@ -31,11 +31,10 @@ function startRPC() {
|
||||
console.error("Erreur Discord RPC :", err);
|
||||
});
|
||||
|
||||
// Gestion propre de la fermeture
|
||||
|
||||
const cleanExit = () => {
|
||||
if (intervalId) clearInterval(intervalId); // stop interval
|
||||
if (intervalId) clearInterval(intervalId);
|
||||
rpc.destroy(); // déconnecte proprement
|
||||
console.log("Discord RPC arrêté proprement.");
|
||||
};
|
||||
|
||||
process.on("exit", cleanExit);
|
||||
|
||||
Reference in New Issue
Block a user