fix idle manger exist

This commit is contained in:
lixianjing 2019-12-03 14:52:28 +08:00
parent 22dcf5d1ab
commit 1c994b8ef5

View File

@ -159,7 +159,7 @@ bool_t idle_manager_exist(idle_manager_t* idle_manager, idle_func_t on_idle, voi
while (iter != NULL) {
idle_info_t* idle = (idle_info_t*)(iter->data);
if (idle->on_idle == idle->on_idle && idle->ctx == ctx) {
if (idle->on_idle == on_idle && idle->ctx == ctx) {
return TRUE;
}