queue -> tasks

This commit is contained in:
Neil Booth 2016-11-29 23:21:22 +09:00
parent 056419f847
commit 6b551973e8

View File

@ -49,8 +49,8 @@ class Prefetcher(LoggedClass):
synchronize.
'''
with await self.semaphore:
while not self.queue.empty():
self.queue.get_nowait()
while not self.tasks.empty():
self.tasks.get_nowait()
self.cache = []
self.cache_size = 0
self.fetched_height = height