We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f0124 commit 0795fa0Copy full SHA for 0795fa0
src/Heartbeat.ts
@@ -65,7 +65,7 @@ class Heartbeat {
65
console.log('heartbeat stopped on ' + connection.address);
66
this.listeners.forEach((listener) => {
67
if (listener.hasOwnProperty('onHeartbeatStopped')) {
68
- Q.fcall(listener.onHeartbeatStopped.bind(this), connection);
+ setImmediate(listener.onHeartbeatStopped.bind(this), connection);
69
}
70
});
71
@@ -75,7 +75,7 @@ class Heartbeat {
75
console.log('heartbeat restored on ' + connection.address);
76
77
if (listener.hasOwnProperty('onHeartbeatRestored')) {
78
- Q.fcall(listener.onHeartbeatRestored.bind(this), connection);
+ setImmediate(listener.onHeartbeatRestored.bind(this), connection);
79
80
81
0 commit comments