diff options
author | Micah Lee <micah@micahflee.com> | 2022-02-13 10:40:55 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2022-02-13 10:40:55 -0800 |
commit | 305abff13c8bb72e52c8e0268aa2e5efcf00a6d1 (patch) | |
tree | d90ed326fd77e2a5acc909c7872b2ca39c4d9a8a /cli/onionshare_cli/web/web.py | |
parent | 33fd639f2ad844031ef664107ec13d234fd7b6b2 (diff) | |
download | onionshare-305abff13c8bb72e52c8e0268aa2e5efcf00a6d1.tar.gz onionshare-305abff13c8bb72e52c8e0268aa2e5efcf00a6d1.zip |
Remove cleanup_tempfiles altogether because they are not being used
Diffstat (limited to 'cli/onionshare_cli/web/web.py')
-rw-r--r-- | cli/onionshare_cli/web/web.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/cli/onionshare_cli/web/web.py b/cli/onionshare_cli/web/web.py index 64844b5c..fdbed567 100644 --- a/cli/onionshare_cli/web/web.py +++ b/cli/onionshare_cli/web/web.py @@ -171,7 +171,6 @@ class Web: self.socketio.init_app(self.app) self.chat_mode = ChatModeWeb(self.common, self) - self.cleanup_tempfiles = [] self.cleanup_tempdirs = [] def get_mode(self): @@ -405,13 +404,8 @@ class Web: """ self.common.log("Web", "cleanup") - # Close all of the tempfile.NamedTemporaryFile - for file in self.cleanup_tempfiles: - file.close() - # Clean up the tempfile.NamedTemporaryDirectory objects for dir in self.cleanup_tempdirs: dir.cleanup() - self.cleanup_tempfiles = [] self.cleanup_tempdirs = [] |