diff --git a/main/media_index.c b/main/media_index.c index 278b37c2641263fe79c1af08275e4738f2bf2ec9..a643c237f32bacb81936124dbfd8d412ba3acb50 100644 --- a/main/media_index.c +++ b/main/media_index.c @@ -551,9 +551,8 @@ static int media_index_update(struct ast_media_index *index, ast_str_set(&statfile, 0, "%s/%s", ast_str_buffer(index_dir), dent->d_name); if (stat(ast_str_buffer(statfile), &st) < 0) { - ast_log(LOG_ERROR, "Failed to stat %s: %s\n", ast_str_buffer(statfile), strerror(errno)); - res = -1; - break; + ast_log(LOG_WARNING, "Failed to stat %s: %s\n", ast_str_buffer(statfile), strerror(errno)); + continue; } if (S_ISDIR(st.st_mode)) {