Skip to content

Commit 70ea324

Browse files
committed
lightningd: don't assert if plugin crashes early.
If a plugin exits early, we will not exit with ret == plugins: return from this function and we will exit because ld->exit_code is set. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 8895ca2 commit 70ea324

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lightningd/plugin.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2128,12 +2128,8 @@ void plugins_init(struct plugins *plugins)
21282128
setenv("LIGHTNINGD_PLUGIN", "1", 1);
21292129
setenv("LIGHTNINGD_VERSION", version(), 1);
21302130

2131-
if (plugins_send_getmanifest(plugins, NULL)) {
2132-
void *ret;
2133-
ret = io_loop_with_timers(plugins->ld);
2134-
log_debug(plugins->ld->log, "io_loop_with_timers: %s", __func__);
2135-
assert(ret == plugins);
2136-
}
2131+
if (plugins_send_getmanifest(plugins, NULL))
2132+
io_loop_with_timers(plugins->ld);
21372133
}
21382134

21392135
static void plugin_config_cb(const char *buffer,

0 commit comments

Comments
 (0)