I dug a bit in the code and found that using a callback function makes the crawler work as expected using the when method.
The current behaviour as in issue #34 is because the promise only resolves once and the code inside then() is therefore only run once. Using a callback function and completely dropping the top most then method makes the crawler crawl again.
I dug a bit in the code and found that using a callback function makes the crawler work as expected using the
when
method.The current behaviour as in issue #34 is because the promise only resolves once and the code inside
then()
is therefore only run once. Using a callback function and completely dropping the top mostthen
method makes the crawler crawl again.Please tell me what you think?