Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

FIX RTM RETRY AND RECONNECT LOGIC #532

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Slackbot_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module.exports = function(botkit, config) {
var retryBackoff = null;

// config.retry, can be Infinity too
var retryEnabled = bot.config.retry ? true : false;
var maxRetry = isNaN(bot.config.retry) || bot.config.retry <= 0 ? 3 : bot.config.retry;
var retryEnabled = botkit.config.retry ? true : false;
var maxRetry = isNaN(botkit.config.retry) || botkit.config.retry <= 0 ? 3 : botkit.config.retry;

/**
* Set up API to send incoming webhook
Expand Down