Explicitly catch NoMethodError instead of catching with Object when there are no events in queue#215
Explicitly catch NoMethodError instead of catching with Object when there are no events in queue#215lamroger wants to merge 2 commits into
Conversation
…le_event is called on nil This occurs when a watch is stopped and then terminated. Undo comments
|
Instead of catching that exception, the code should handle the condition directly so it doesn't generate an exception. I'm not sure if we should ever be seeing a |
|
The events are stored in an array and are popped with the shift function. I can modify it to check if it's nil before calling handle_event. On Monday, March 23, 2015, Eric Lindvall notifications@github.com wrote:
|
|
It looks like the goal of I think that another |
|
I think the problem still occurs when I don't quite understand why we |
This can be replicated by loading a watch, stopping it, and removing it.
The logs look like this
The watch is a simple watch similar to the example on the homepage.
The test fails if you comment out the Object catch.