From 212ad7894a92730f3dbfcbada80ba582f7ab1d46 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 18 Mar 2017 23:25:45 +0000 Subject: [PATCH] .then added for process.exit on disconnect --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 96edc9bd..89999169 100644 --- a/index.js +++ b/index.js @@ -152,8 +152,7 @@ client.on('guildDelete', guild => { }); client.on('disconnect', () => { - console.log('[Disconnect] A disconnection has occurred. Attempting to reboot...'); - process.exit(0); + console.log('[Disconnect] A disconnection has occurred. Attempting to reboot...').then(p => process.exit(0)); }); client.once('ready', () => {