mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-16 01:37:25 -05:00
Fix crash when tor is closed first and then onionshare is closed and a stem.SocketClosed exception is raised.
This commit is contained in:
parent
ae760a15c8
commit
58d8f55a63
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user