Skip to content

Commit

Permalink
Fix spawnRPC only running once on catch
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarLothbrok-Odin committed Jul 2, 2022
1 parent 92e2afe commit 087cc64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Trakt.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const spawnRPC = async () => {
rpc.clearActivity();
console.log(chalk.red.bold('Failed to connect to Discord. Retrying in 15 seconds.'));
// Retry every 15 seconds until successful.
setTimeout(() => {
setInterval(() => {
spawnRPC();
}, 15000);
return;
Expand Down

0 comments on commit 087cc64

Please sign in to comment.