mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
improve event_source_manager_default_dispatch_fds
This commit is contained in:
parent
f517605adb
commit
62f0d6cb1c
@ -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(感谢兆坤提供补丁)
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user