From 63730b9c5cae527ac7c02e61fbff20c408a2be03 Mon Sep 17 00:00:00 2001 From: Revadike Date: Sun, 26 Apr 2020 15:48:55 +0200 Subject: [PATCH] Fixed waiting after the all accounts have been processed --- README.md | 3 +++ gimme_free_epic_shit.js | 12 ++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bd56ffd..e55c68c 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,9 @@ To which I will say, why not? Most of these games are actually outstanding games No, these are only usable by using the config. ## Changelog +### V1.2.3 + * Small bugfix + ### V1.2.2 * Added looping feature a.k.a. run forever* (Closes #2) * Added multi-account support* diff --git a/gimme_free_epic_shit.js b/gimme_free_epic_shit.js index fadb24d..6d2aa1c 100644 --- a/gimme_free_epic_shit.js +++ b/gimme_free_epic_shit.js @@ -67,13 +67,13 @@ let { accounts, delay, loop } = require(`${__dirname}/config.json`); await client.logout(); console.log(`Logged ${client.account.name} out of Epic Games`); + } - if (loop) { - console.log(`Waiting ${delay} minutes`); - await sleep(delay); - } else { - process.exit(0); - } + if (loop) { + console.log(`Waiting ${delay} minutes`); + await sleep(delay); + } else { + process.exit(0); } } while (loop); })().catch(err => {