Remove unreachable shutdown code

* Implementing `__del__` is discouraged
  * Imports (i.e. `import logging`) are cleaned up, leading to NoneType related errors
* When running via GUI mode, the shutdown code is never reached; we can let Python's internal GC clean everything
This commit is contained in:
Andrew Wong 2020-09-30 19:22:31 +10:00
parent 224f6b3503
commit 8af532f25e
2 changed files with 0 additions and 10 deletions

View file

@ -409,9 +409,6 @@ class Worker(QThread):
self.toDisplay = Queue()
self.threadpool = ThreadPool(max_workers=cpu_count())
def __del__(self):
self.threadpool.shutdown()
def compress_file(self, images, showapp, verbose, imagelist):
"""Start the worker thread."""
for image in images: