diff --git a/magneticod/magneticod/__main__.py b/magneticod/magneticod/__main__.py index fa0c62d..a99dbdd 100644 --- a/magneticod/magneticod/__main__.py +++ b/magneticod/magneticod/__main__.py @@ -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