Permalink
Browse files

Added check for "deadness" in the got_activity handler

  • Loading branch information...
DamonOehlman committed Sep 18, 2012
1 parent d08eac3 commit 5026a51d112552bfd5c7e29c05b13634e5cb23ce
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/feed.js
View
@@ -329,6 +329,9 @@ Feed.prototype.wait = function wait_for_event() {
Feed.prototype.got_activity = function() {
var self = this
+
+ // if dead, return
+ if (self.dead) return;
if(! self.pending.wait_timer)
return self.die(new Error('Cannot find wait timer'))

0 comments on commit 5026a51

Please sign in to comment.