Fix negative counts for object_queued. fixes ticket:2731

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2016-03-22 15:26:01 +00:00 committed by Brian Warner
parent 625c5a42cd
commit e67d23b8fa

View File

@ -865,6 +865,7 @@ class Downloader(QueueMixin, WriteFileMixin):
)
to_dl.set_status('queued', self._clock.seconds())
self._deque.append(to_dl)
self._count("objects_queued")
else:
self._log("Excluding %r" % (relpath_u,))
self._call_hook(None, 'processed', async=True) # await this maybe-Deferred??