diff --git a/worker.py b/worker.py index 042d23c..4228fee 100644 --- a/worker.py +++ b/worker.py @@ -1535,5 +1535,6 @@ class Worker(threading.Thread): # If a restart has been requested... # Do nothing. # Close the database session + self.session.close() # End the process sys.exit(0)