diff options
author | Miguel Jacq <mig@mig5.net> | 2021-05-04 16:21:42 +1000 |
---|---|---|
committer | Miguel Jacq <mig@mig5.net> | 2021-05-04 16:21:42 +1000 |
commit | 04019389dad4fc1b7311fbfe77b412e0c576c143 (patch) | |
tree | c17cc6d254583b784a2a6aa9353572365a24e139 /cli/onionshare_cli/__init__.py | |
parent | 659ed83853a6e68d9509a7e5f59a38713f02c1e0 (diff) | |
download | onionshare-04019389dad4fc1b7311fbfe77b412e0c576c143.tar.gz onionshare-04019389dad4fc1b7311fbfe77b412e0c576c143.zip |
Move the cleanup() function from Onionshare class to Web class, so that the list of files to be cleaned up is always available (needed for website temp files)
Diffstat (limited to 'cli/onionshare_cli/__init__.py')
-rw-r--r-- | cli/onionshare_cli/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/onionshare_cli/__init__.py b/cli/onionshare_cli/__init__.py index 6a7a0fde..c046e472 100644 --- a/cli/onionshare_cli/__init__.py +++ b/cli/onionshare_cli/__init__.py @@ -442,7 +442,6 @@ def main(cwd=None): print("Compressing files.") try: web.share_mode.set_file_info(filenames) - app.cleanup_filenames += web.share_mode.cleanup_filenames except OSError as e: print(e.strerror) sys.exit(1) @@ -536,7 +535,7 @@ def main(cwd=None): web.stop(app.port) finally: # Shutdown - app.cleanup() + web.cleanup() onion.cleanup() |