1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-22 05:54:18 +00:00

🐛 Fix worker not closing sessions properly

This commit is contained in:
Santiago Valenzuela 2020-12-03 08:11:58 +01:00 committed by Stefano Pigozzi
parent d7d1ad99dd
commit 3915bb7447

View file

@ -1535,5 +1535,6 @@ class Worker(threading.Thread):
# If a restart has been requested... # If a restart has been requested...
# Do nothing. # Do nothing.
# Close the database session # Close the database session
self.session.close()
# End the process # End the process
sys.exit(0) sys.exit(0)