Skip to content

Commit 0d686d1

Browse files
committed
Revert "lightningd: close plugin dir on return"
This reverts commit 4f30857.
1 parent 90a267b commit 0d686d1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lightningd/plugin.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1703,11 +1703,9 @@ char *add_plugin_dir(struct plugins *plugins, const char *dir, bool error_ok)
17031703
} else {
17041704
p = plugin_register(plugins, fullpath, NULL, false,
17051705
NULL, NULL);
1706-
if (!p && !error_ok) {
1707-
closedir(d);
1706+
if (!p && !error_ok)
17081707
return tal_fmt(NULL, "Failed to register %s: %s",
17091708
fullpath, strerror(errno));
1710-
}
17111709
}
17121710
}
17131711
closedir(d);

0 commit comments

Comments
 (0)