mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
lightningd: don't increment plugin state to NEEDS_INIT when error in getmanifest
Otherwise we hangs forever in startup when it was the last plugin, we would miss destroy_plugin --> check_plugins_manifests --> io_break e.g. when a plugin tries to register a bool option with a string as default value.
This commit is contained in:
parent
981fd2326a
commit
2fddfe3ffc
1 changed files with 2 additions and 1 deletions
|
@ -1521,6 +1521,7 @@ static const char *plugin_parse_getmanifest_response(const char *buffer,
|
|||
if (!err)
|
||||
err = plugin_add_params(plugin);
|
||||
|
||||
if (!err)
|
||||
plugin->plugin_state = NEEDS_INIT;
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue