Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fix issue #84, crash in cluster messaging (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-palmer committed Dec 17, 2018
1 parent 0357d34 commit 57fa4e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/cluster_messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class ClusterMessages extends EventEmitter {
const msg = message[kMsgPrefix];
if (!this._listeners.hasOwnProperty(msg)) return;

this._listeners[msg](message.data)
Promise.resolve()
.then(() => this._listeners[msg](message.data))
.then(result => {
const payload = {
msgId: message.msgId,
Expand Down

0 comments on commit 57fa4e9

Please sign in to comment.