Fixed reconnect timer being set to 0 seconds in some instances

This commit is contained in:
benji7425 2017-01-06 22:09:11 +00:00
parent 124d98e302
commit e8a88386be
2 changed files with 7 additions and 1 deletions

View file

@ -1,5 +1,11 @@
# Changelog # Changelog
## v1.1.2.1
### Fixed
- Fixed reconnect timer being set to 0 sometimes
## v1.1.2 ## v1.1.2
### Updated ### Updated

View file

@ -50,7 +50,7 @@ var DiscordClient = {
DiscordClient.reconnectInterval = setInterval(function () { DiscordClient.reconnectInterval = setInterval(function () {
DiscordClient.startup(); DiscordClient.startup();
}, (Config.reconnectInterval || Config.pollingInterval)); }, Config.pollingInterval);
}, },
onMessage: function (user, userID, channelID, message) { onMessage: function (user, userID, channelID, message) {
//check if the message is in the right channel, contains a link, and is not the latest link from the rss feed //check if the message is in the right channel, contains a link, and is not the latest link from the rss feed