mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-02 03:58:33 +08:00
improve emitter_off_ex
This commit is contained in:
parent
09b56c1d4b
commit
48b1152064
@ -211,7 +211,7 @@ static ret_t emitter_off_ex(emitter_t* emitter, tk_compare_t cmp, void* ctx) {
|
||||
emitter_item_t* prev = emitter->items;
|
||||
|
||||
while (iter != NULL) {
|
||||
if ((emitter->curr_iter != iter || !emitter->remove_curr_iter) && cmp(iter, ctx) == 0) {
|
||||
if (cmp(iter, ctx) == 0) {
|
||||
return emitter_remove(emitter, prev, iter);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user