Pass the correct parameter to remove_ephemeral_hidden_service()

Add debug logs to verify if an onion was successfully deleted or not
This commit is contained in:
Miguel Jacq 2018-02-12 13:43:34 +11:00
parent 145293d3cc
commit 267aa7dfec
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -489,8 +489,10 @@ class Onion(object):
onions = self.c.list_ephemeral_hidden_services()
for onion in onions:
try:
self.c.remove_ephemeral_hidden_service(service_id)
common.log('Onion', 'cleanup', 'trying to remove onion {}'.format(onion))
self.c.remove_ephemeral_hidden_service(onion)
except:
common.log('Onion', 'cleanup', 'could not remove onion {}.. moving on anyway'.format(onion))
pass
except:
pass