mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-12-04 21:17:50 +08:00
fix emitter_dispatch
This commit is contained in:
parent
9582263fa8
commit
8c3ab713f8
@ -129,8 +129,8 @@ ret_t emitter_dispatch(emitter_t* emitter, event_t* e) {
|
|||||||
if (iter->type == e->type) {
|
if (iter->type == e->type) {
|
||||||
ret = iter->handler(iter->ctx, e);
|
ret = iter->handler(iter->ctx, e);
|
||||||
if (ret == RET_STOP) {
|
if (ret == RET_STOP) {
|
||||||
|
emitter->curr_iter = NULL;
|
||||||
if (emitter->remove_curr_iter) {
|
if (emitter->remove_curr_iter) {
|
||||||
emitter->curr_iter = NULL;
|
|
||||||
emitter->remove_curr_iter = FALSE;
|
emitter->remove_curr_iter = FALSE;
|
||||||
emitter_remove_item(emitter, iter);
|
emitter_remove_item(emitter, iter);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user