fixed "sqlite3.ProgrammingError: Cannot operate on a closed database."

p.c. you should stop running what is using the database before closing
it!
This commit is contained in:
Bora M. Alper 2017-06-15 15:49:41 +03:00
parent f4651fc6e3
commit 804fc10f1d

View File

@ -151,8 +151,8 @@ def main() -> int:
logging.critical("Keyboard interrupt received! Exiting gracefully...")
finally:
metadata_queue_watcher_task.cancel()
database.close()
loop.run_until_complete(node.shutdown())
database.close()
return 0