mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-20 11:38:52 +00:00
reduce repetition
This commit is contained in:
parent
a2b4455229
commit
049a535048
@ -423,10 +423,10 @@ class MagicFolder(service.MultiService):
|
|||||||
def _finish(self):
|
def _finish(self):
|
||||||
d0 = self.downloader.stop()
|
d0 = self.downloader.stop()
|
||||||
d1 = self.uploader.stop()
|
d1 = self.uploader.stop()
|
||||||
return defer.DeferredList([
|
return defer.DeferredList(list(
|
||||||
DeferredContext(d0).addErrback(write_failure).result,
|
DeferredContext(d).addErrback(write_failure).result
|
||||||
DeferredContext(d1).addErrback(write_failure).result,
|
for d in [d0, d1]
|
||||||
])
|
))
|
||||||
|
|
||||||
|
|
||||||
_NICKNAME = Field.for_types(
|
_NICKNAME = Field.for_types(
|
||||||
|
Loading…
Reference in New Issue
Block a user