Skip to content
Snippets Groups Projects
Commit 874e842a authored by Diego Sampaio's avatar Diego Sampaio Committed by GitHub
Browse files

Fix livechat webhook infinite retries

parent 0fc44587
No related branches found
Tags 6.1.7
No related merge requests found
...@@ -307,7 +307,7 @@ RocketChat.Livechat = { ...@@ -307,7 +307,7 @@ RocketChat.Livechat = {
RocketChat.Livechat.logger.webhook.warn('Will try again in 10 seconds ...'); RocketChat.Livechat.logger.webhook.warn('Will try again in 10 seconds ...');
trying++; trying++;
setTimeout(Meteor.bindEnvironment(() => { setTimeout(Meteor.bindEnvironment(() => {
RocketChat.Livechat.sendRequest(postData, trying); RocketChat.Livechat.sendRequest(postData, callback, trying);
}), 10000); }), 10000);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment