Skip to content

Commit

Permalink
SNOW-1658878: pass callback to heartbeat call (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeRego authored Sep 23, 2024
1 parent b83eba4 commit 8a83e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ function Connection(context) {
function connectCallback(self, callback) {
return function (err) {
if (Parameters.getValue(Parameters.names.CLIENT_SESSION_KEEP_ALIVE)) {
self.keepalive = setInterval(self.heartbeat, Parameters.getValue(Parameters.names.CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY) * 1000, self);
self.keepalive = setInterval(self.heartbeat, Parameters.getValue(Parameters.names.CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY) * 1000, callback);
}
if (Util.isFunction(callback)) {
callback(Errors.externalize(err), self);
Expand Down

0 comments on commit 8a83e21

Please sign in to comment.