tor now exits properly on STOP command
This commit is contained in:
parent
ead0741e03
commit
4510dbfd82
2 changed files with 20 additions and 1 deletions
|
@ -134,11 +134,13 @@ class Onionr:
|
|||
def killDaemon(self):
|
||||
'''Shutdown the Onionr Daemon'''
|
||||
logger.warn('Killing the running daemon')
|
||||
net = NetController(self.config['CLIENT']['PORT'])
|
||||
try:
|
||||
self.onionrUtils.localCommand('shutdown')
|
||||
except requests.exceptions.ConnectionError:
|
||||
pass
|
||||
self.onionrCore.daemonQueueAdd('shutdown')
|
||||
net.killTor()
|
||||
return
|
||||
def showStats(self):
|
||||
'''Display statistics and exit'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue