From 58d8f55a63c126e7c169fd3328e66b890e56dc6d Mon Sep 17 00:00:00 2001 From: Sigma Date: Tue, 20 Dec 2016 01:44:20 -0800 Subject: [PATCH] Fix crash when tor is closed first and then onionshare is closed and a stem.SocketClosed exception is raised. --- onionshare/onion.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/onionshare/onion.py b/onionshare/onion.py index 2bfd4888..b91105ef 100644 --- a/onionshare/onion.py +++ b/onionshare/onion.py @@ -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: