Skip to content

Commit

Permalink
Fix bug recording stops
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Jul 10, 2015
1 parent 6dcce35 commit f27a723
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/mode/twitter/TwitterComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,18 @@ module.exports = (() => {
'>': '>'
};

var streamStartAt;
var streamStartAt, streaming = false;

var setup = (() => {
if (streaming) return;
streaming = true;
streamStartAt = Date.now();
this._event.emit("stream");
}).bind(this);

var destroy = (err => {
this.destroyStream();
streaming = false;
this._event.emit("error", err);
}).bind(this);

Expand Down

0 comments on commit f27a723

Please sign in to comment.