1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

Subject: plugins: lwsws will not iterate all plugin directories

Apply the same logic to both libuv and the generic unix plugin implementations
This commit is contained in:
21stcaveman 2020-08-22 15:46:36 -07:00 committed by Andy Green
parent 72b245ea38
commit 8ca839dfb0
2 changed files with 4 additions and 2 deletions

View file

@ -346,7 +346,8 @@ lws_uv_plugins_init(struct lws_context *context, const char * const *d)
m =uv_fs_scandir(&context->uv.loop, &req, *d, 0, NULL);
if (m < 1) {
lwsl_err("Scandir on %s failed\n", *d);
return 1;
d++;
continue;
}
while (uv_fs_scandir_next(&req, &dent) != UV_EOF) {

View file

@ -65,7 +65,8 @@ lws_plat_plugins_init(struct lws_context * context, const char * const *d)
n = scandir(*d, &namelist, filter, alphasort);
if (n < 0) {
lwsl_err("Scandir on %s failed\n", *d);
return 1;
d++;
continue;
}
for (i = 0; i < n; i++) {