iriscouch/follow — Issue #8: Calling stop() from a change handler leaks a timer
Author: jhs
Created: 2011-12-15 10:59:00+00:00
State: open

The problem:

1. Data arrives, the data handler runs
1. A Feed decides a change happened
1. It fires a "change" event
1. The handler calls `.die()`
1. The die code cleans up stuff
1. The stack unwinds and we realize we are still in the data handler from step 1
1. That data handler calls self.wait() which starts a timer, so Node can't exit