From c3ffe8d729f7e29137e6fc7f2b5ad50934ab158e Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 21 Dec 2013 22:58:36 +0000 Subject: [PATCH] this should clean up the timers properly --- modules/reddit/reddit.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/reddit/reddit.js b/modules/reddit/reddit.js index 344ad40..b6d084b 100644 --- a/modules/reddit/reddit.js +++ b/modules/reddit/reddit.js @@ -43,6 +43,7 @@ var reddit = function(dbot) { for(i=0;i 0) { _.each(posts, function(post) { @@ -71,7 +72,9 @@ var reddit = function(dbot) { checkTimes[channel.id][feed.subreddit] = Date.now(); } }.bind(this)); - }.bind(this), feed.interval)); + }.bind(this), feed.interval); + console.log(intervalId); + this.ints.push(intervalId); }.bind(this)); }.bind(this)); }.bind(this));