.then added for process.exit on disconnect

This commit is contained in:
Daniel Odendahl Jr
2017-03-18 23:25:45 +00:00
parent 93698f9827
commit 212ad7894a
+1 -2
View File
@@ -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', () => {