mirror of
https://github.com/onionshare/onionshare.git
synced 2024-10-01 01:35:40 -04:00
Remove unnecessary attribute from OnionShare object
This commit is contained in:
parent
dc0fe4f7b1
commit
040e7e4ca9
@ -41,7 +41,6 @@ class OnionShare(object):
|
||||
self.onion_host = None
|
||||
self.port = None
|
||||
self.stealth = None
|
||||
self.scheduled_key = None
|
||||
|
||||
# files and dirs to delete on shutdown
|
||||
self.cleanup_filenames = []
|
||||
@ -90,15 +89,11 @@ class OnionShare(object):
|
||||
if self.stealth:
|
||||
self.auth_string = self.onion.auth_string
|
||||
|
||||
if self.onion.scheduled_key:
|
||||
self.scheduled_key = self.onion.scheduled_key
|
||||
|
||||
def cleanup(self):
|
||||
"""
|
||||
Shut everything down and clean up temporary files, etc.
|
||||
"""
|
||||
self.common.log('OnionShare', 'cleanup')
|
||||
self.scheduled_key = None
|
||||
|
||||
# Cleanup files
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user