diff --git a/rlgterm.js b/rlgterm.js index 6140b4d..704bc9e 100644 --- a/rlgterm.js +++ b/rlgterm.js @@ -27,13 +27,20 @@ var ajaxstate = { this.set(4000); this.state++; } - else if (this.state < 8) { - this.set(15000); - this.state++; + else if (session.playing) { + if (this.state < 8) { + this.set(15000); + this.state++; + } + else { + /* It's been over a minute. Stop polling. */ + this.clear(); + } } else { - /* It's been over a minute. Stop polling. */ - this.clear(); + /* If watching, it can't stop polling entirely, because there + * are no POST events to start it up again. */ + this.set(10000); } }, posted: function (wasdata) {