1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-21 21:44:19 +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...
# Do nothing.
# Close the database session
self.session.close()
# End the process
sys.exit(0)