mirror of https://github.com/scrapy/scrapy.git
CloseDomain extension: fixed bug on domain close when not using CLOSEDOMAIN_TIMEOUT
This commit is contained in:
parent
fcc91901eb
commit
64d9155572
|
|
@ -39,6 +39,6 @@ class CloseDomain(object):
|
|||
|
||||
def domain_closed(self, domain):
|
||||
self.counts.pop(domain, None)
|
||||
tsk = self.tasks.pop(domain)
|
||||
if not tsk.called:
|
||||
tsk = self.tasks.pop(domain, None)
|
||||
if tsk and not tsk.called:
|
||||
tsk.cancel()
|
||||
|
|
|
|||
Loading…
Reference in New Issue