mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 02:01:31 +00:00
it's okay if we already cancelled it
This commit is contained in:
parent
622ae646b1
commit
de8e61ddf1
@ -6,6 +6,7 @@ from datetime import datetime
|
||||
import time
|
||||
|
||||
from twisted.internet import defer, reactor, task
|
||||
from twisted.internet.error import AlreadyCancelled
|
||||
from twisted.python.failure import Failure
|
||||
from twisted.python import runtime
|
||||
from twisted.python import log as twlog
|
||||
@ -382,7 +383,10 @@ class Uploader(QueueMixin):
|
||||
self._notifier.stopReading()
|
||||
self._count('dirs_monitored', -1)
|
||||
if self._periodic_callid:
|
||||
self._periodic_callid.cancel()
|
||||
try:
|
||||
self._periodic_callid.cancel()
|
||||
except AlreadyCancelled:
|
||||
pass
|
||||
|
||||
if hasattr(self._notifier, 'wait_until_stopped'):
|
||||
d = self._notifier.wait_until_stopped()
|
||||
|
Loading…
x
Reference in New Issue
Block a user