queen.sendOnly: ignore DeadReferenceError too
authorBrian Warner <warner@lothar.com>
Sun, 21 Jan 2007 23:01:09 +0000 (16:01 -0700)
committerBrian Warner <warner@lothar.com>
Sun, 21 Jan 2007 23:01:09 +0000 (16:01 -0700)
src/allmydata/queen.py

index c49f384f0dda783af1c39160e93bbbcfd3ae1ef1..aff8ee76f73b9508265334de8c93afba15cbbe99 100644 (file)
@@ -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):