FamilySearch/fs-js-lite

Timer issue

ed4becky opened this issue · 1 comments

With the default timer interval set to 1000, a queue is created and one request per second is sent. All good.

When the queue is empty, clearInterval() is called, but the timer is not set to null.

The next time a request comes in, the request is queued, but the timer fails a null check and is never restarted!

BAsically I can send one flurry of requests, but after the queue is cleared I can't run anymore.

2019-10-31_21-11-42

Thanks for the issue. How would you fix the problem?