mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
catch failures in startService() and abort process
This commit is contained in:
parent
92395125fa
commit
7c479ba8a7
@ -86,6 +86,13 @@ class Node(service.MultiService):
|
||||
self._tub_ready_observerlist.fire(self)
|
||||
return self
|
||||
d.addCallback(_ready)
|
||||
def _die(failure):
|
||||
self.log('_startService() failed')
|
||||
log.err(failure)
|
||||
#reactor.stop() # for unknown reasons, reactor.stop() isn't working. [ ] TODO
|
||||
self.log('calling os.abort()')
|
||||
os.abort()
|
||||
d.addErrback(_die)
|
||||
|
||||
def stopService(self):
|
||||
self.log("Node.stopService")
|
||||
|
Loading…
x
Reference in New Issue
Block a user