improve event_source_manager_default_dispatch_fds

This commit is contained in:
lixianjing 2021-05-13 18:18:29 +08:00
parent f517605adb
commit 62f0d6cb1c
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,8 @@
2021/05/13
* 完善和优化layout处理流程。
* 完善layout中auto adjust size的处理。
* 完善event\_source\_manager\_default\_dispatch\_fds(感谢林福提供补丁)。
* 完善object\_compositor\_on\_destroy感谢zhujun19790920提供补丁)。
2021/05/12
* 完善mledit感谢兆坤提供补丁

View File

@ -47,7 +47,7 @@ static ret_t event_source_manager_default_dispatch_fds(event_source_manager_t* m
uint32_t i = 0;
int32_t fd = 0;
int32_t ret = 0;
int32_t max_fd = 0;
int32_t max_fd = -1;
struct timeval tv = {0, 0};
event_source_t* iter = NULL;
event_source_t** sources = NULL;
@ -70,7 +70,7 @@ static ret_t event_source_manager_default_dispatch_fds(event_source_manager_t* m
}
}
if (max_fd == 0) {
if (max_fd < 0) {
return RET_OK;
}