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:
parent
f4651fc6e3
commit
804fc10f1d
@ -151,8 +151,8 @@ def main() -> int:
|
|||||||
logging.critical("Keyboard interrupt received! Exiting gracefully...")
|
logging.critical("Keyboard interrupt received! Exiting gracefully...")
|
||||||
finally:
|
finally:
|
||||||
metadata_queue_watcher_task.cancel()
|
metadata_queue_watcher_task.cancel()
|
||||||
database.close()
|
|
||||||
loop.run_until_complete(node.shutdown())
|
loop.run_until_complete(node.shutdown())
|
||||||
|
database.close()
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user