Skip to content

Commit a17eb06

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 79b959b commit a17eb06

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
@@ -2124,12 +2124,8 @@ void plugins_init(struct plugins *plugins)
21242124
setenv("LIGHTNINGD_PLUGIN", "1", 1);
21252125
setenv("LIGHTNINGD_VERSION", version(), 1);
21262126

2127-
if (plugins_send_getmanifest(plugins, NULL)) {
2128-
void *ret;
2129-
ret = io_loop_with_timers(plugins->ld);
2130-
log_debug(plugins->ld->log, "io_loop_with_timers: %s", __func__);
2131-
assert(ret == plugins);
2132-
}
2127+
if (plugins_send_getmanifest(plugins, NULL))
2128+
io_loop_with_timers(plugins->ld);
21332129
}
21342130

21352131
static void plugin_config_cb(const char *buffer,

0 commit comments

Comments
 (0)