mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +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:
committed by
neil saitug
parent
981fd2326a
commit
2fddfe3ffc
@@ -1521,7 +1521,8 @@ static const char *plugin_parse_getmanifest_response(const char *buffer,
|
||||
if (!err)
|
||||
err = plugin_add_params(plugin);
|
||||
|
||||
plugin->plugin_state = NEEDS_INIT;
|
||||
if (!err)
|
||||
plugin->plugin_state = NEEDS_INIT;
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user