From 493ba7303792848f4616146cdf6f918ec6423c57 Mon Sep 17 00:00:00 2001 From: RumbleFrog Date: Sun, 17 Jun 2018 02:21:51 -0400 Subject: [PATCH] fix(ShardClientUtil): send method's promise erroneously rejecting (#2604) Patches the remaining ones that were missed in https://github.com/discordjs/discord.js/commit/eef4a4ad1706bef1d4dccbfa4abccd918cad7537 --- src/sharding/ShardClientUtil.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sharding/ShardClientUtil.js b/src/sharding/ShardClientUtil.js index 0d7d4412b..8541c3578 100644 --- a/src/sharding/ShardClientUtil.js +++ b/src/sharding/ShardClientUtil.js @@ -37,10 +37,9 @@ class ShardClientUtil { */ send(message) { return new Promise((resolve, reject) => { - const sent = process.send(message, err => { + process.send(message, err => { if (err) reject(err); else resolve(); }); - if (!sent) throw new Error('Failed to send message to master process.'); }); }