From c5fea45f3090fd9ad565f581ee511fed5e9df63a Mon Sep 17 00:00:00 2001 From: RumbleFrog Date: Sun, 17 Jun 2018 02:21:51 -0400 Subject: [PATCH] fix(ShardClientUtil): send method erroneously rejecting (#2604) --- src/sharding/ShardClientUtil.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sharding/ShardClientUtil.js b/src/sharding/ShardClientUtil.js index 5cdfb075b..07c282ebf 100644 --- a/src/sharding/ShardClientUtil.js +++ b/src/sharding/ShardClientUtil.js @@ -1,6 +1,5 @@ const Util = require('../util/Util'); const { Events } = require('../util/Constants'); -const { Error } = require('../errors'); /** * Helper class for sharded clients spawned as a child process, such as from a {@link ShardingManager}. @@ -43,10 +42,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('SHARDING_PARENT_CONNECTION'); }); }