mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-17 13:50:28 -04:00
Delete temporary tor data directory during cleanup
This commit is contained in:
parent
18545b7aa2
commit
0fb556baf2
1 changed files with 7 additions and 0 deletions
|
@ -433,6 +433,13 @@ class Onion(object):
|
||||||
self.stealth = False
|
self.stealth = False
|
||||||
self.service_id = None
|
self.service_id = None
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Delete the temporary tor data directory
|
||||||
|
self.tor_data_directory.cleanup()
|
||||||
|
except AttributeError:
|
||||||
|
# Skip if cleanup was somehow run before connect
|
||||||
|
pass
|
||||||
|
|
||||||
def get_tor_socks_port(self):
|
def get_tor_socks_port(self):
|
||||||
"""
|
"""
|
||||||
Returns a (address, port) tuple for the Tor SOCKS port
|
Returns a (address, port) tuple for the Tor SOCKS port
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue