From 59a6b8cabd587c08d8ff90a597635759225eb572 Mon Sep 17 00:00:00 2001 From: Richard Fox Date: Fri, 12 Feb 2016 21:53:22 +0000 Subject: [PATCH] Catch errors --- lib/Live.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Live.js b/lib/Live.js index b4ef00e..909b75a 100644 --- a/lib/Live.js +++ b/lib/Live.js @@ -185,6 +185,9 @@ Live.prototype.pollFollowers = function(channel) { } else { arr = result[0]; } + if(!arr) { + return; + } arr = arr.reverse(); arr = arr.slice(0,99); arr = arr.reverse();