Merge pull request #76 from featherbear/master

Remove unreachable shutdown code
This commit is contained in:
Kilian Valkhof 2020-09-30 13:19:37 +02:00 committed by GitHub
commit f37c8b6ffc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 10 deletions

View file

@ -30,9 +30,6 @@ class ThreadPoolMixIn:
def __init__(self, threadpool=None):
if (threadpool == None):
threadpool = ThreadPool()
self.__private_threadpool = True
else:
self.__private_threadpool = False
self.__threadpool = threadpool
@ -52,10 +49,6 @@ class ThreadPoolMixIn:
def process_request(self, request, client_address):
self.__threadpool.add_job(self.process_request_thread, [request, client_address])
def shutdown(self):
if (self.__private_threadpool): self.__threadpool.shutdown()
class AddJobException(Exception):
'''
Exceptoion raised when a Job could not be added

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: