scttnlsn/monq — pull request #31 by scriby (2014-05-13 04:33:08+00:00)
Title: Cancel the poll timeout so the worker will stop more quickly

I was having a funny issue where the setTimeout in the woker.poll never triggered (I think due to mocking the clock with sinon).

I switched the stop method to cancel the poll immediately, which also has a benefit of stopping the service more quickly for jobs on long poll intervals.