Reorganise some shard logic

This commit is contained in:
Schuyler Cebulskie
2016-09-27 17:22:56 -04:00
parent 0ee3d6bb8a
commit 49d905a7b1
4 changed files with 30 additions and 16 deletions

View File

@@ -91,7 +91,6 @@ class Client extends EventEmitter {
* @type {?ShardUtil}
*/
this.shard = process.send ? ShardClientUtil.singleton(this) : null;
if (this.shard) process.on('message', this.shard._handleMessage.bind(this.shard));
/**
* A Collection of the Client's stored users