mirror of
https://github.com/aljazceru/lightning.git
synced 2026-02-11 00:54:23 +01:00
plugins: simplify shutdown loop, simply close the db
The only thing that needs ld->wallet after this is destroy_invoices_waiter (off jsonrpc) Could not find any other destructors (destroy_*) that need wallet or db access after this. Any db access would now segfault.
This commit is contained in:
committed by
Rusty Russell
parent
be196b4219
commit
f936fa926f
@@ -338,7 +338,6 @@ void plugin_hook_db_sync(struct db *db)
|
||||
size_t i;
|
||||
size_t num_hooks;
|
||||
|
||||
db_check_plugins_not_shutdown(db);
|
||||
const char **changes = db_changes(db);
|
||||
num_hooks = tal_count(hook->hooks);
|
||||
if (num_hooks == 0)
|
||||
|
||||
Reference in New Issue
Block a user