Merge branch 'shutdowncrashfix' of https://github.com/b3sigma/onionshare into b3sigma-shutdowncrashfix

This commit is contained in:
Micah Lee 2016-12-21 23:08:33 -08:00
commit 05e25b120a
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -179,7 +179,10 @@ class Onion(object):
if self.supports_ephemeral:
# cleanup the ephemeral onion service
if self.service_id:
self.c.remove_ephemeral_hidden_service(self.service_id)
try:
self.c.remove_ephemeral_hidden_service(self.service_id)
except:
pass
self.service_id = None
else: