mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
queen.sendOnly: ignore DeadReferenceError too
This commit is contained in:
parent
81d093b649
commit
5453e0f022
@ -1,6 +1,6 @@
|
||||
|
||||
import os.path
|
||||
from foolscap import Referenceable
|
||||
from foolscap import Referenceable, DeadReferenceError
|
||||
from foolscap.eventual import eventually
|
||||
from twisted.application import service
|
||||
from twisted.python import log
|
||||
@ -15,7 +15,7 @@ from allmydata.filetable import GlobalVirtualDrive
|
||||
def sendOnly(call, methname, *args, **kwargs):
|
||||
d = call(methname, *args, **kwargs)
|
||||
def _trap(f):
|
||||
f.trap(ConnectionLost, ConnectionDone)
|
||||
f.trap(DeadReferenceError, ConnectionLost, ConnectionDone)
|
||||
d.addErrback(_trap)
|
||||
|
||||
class Roster(service.MultiService, Referenceable):
|
||||
|
Loading…
x
Reference in New Issue
Block a user