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:
parent
72b245ea38
commit
8ca839dfb0
2 changed files with 4 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue