CloseDomain extension: fixed bug on domain close when not using CLOSEDOMAIN_TIMEOUT

This commit is contained in:
Pablo Hoffman 2009-07-28 12:23:13 -03:00
parent fcc91901eb
commit 64d9155572
1 changed files with 2 additions and 2 deletions

View File

@ -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()