[Pkg-privacy-commits] [onionshare] 13/256: Fix crash when tor is closed first and then onionshare is closed and a stem.SocketClosed exception is raised.
Ulrike Uhlig
ulrike at moszumanska.debian.org
Fri May 26 12:53:02 UTC 2017
This is an automated email from the git hooks/post-receive script.
ulrike pushed a commit to branch master
in repository onionshare.
commit 58d8f55a63c126e7c169fd3328e66b890e56dc6d
Author: Sigma <b3sigma at gmail.com>
Date: Tue Dec 20 01:44:20 2016 -0800
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 2bfd488..b91105e 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:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/onionshare.git
More information about the Pkg-privacy-commits
mailing list