Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: should call disposeEventTarget sync to make sure dispose sync be… #873

Merged
merged 8 commits into from
Nov 18, 2021

Conversation

andycall
Copy link
Member

@andycall andycall commented Nov 12, 2021

异步调用 disposeEventTarget 会导致在极端的情况下,触发事件的同时,eventTarget 也同步被销毁。从而导致 emitUIEvent 导致 crash。
Fix:将 disposeEventTarget 改成同步调用,确保时序一致

yuanyan
yuanyan previously approved these changes Nov 13, 2021
@yuanyan yuanyan merged commit b36e7b0 into main Nov 18, 2021
@yuanyan yuanyan deleted the feat/sync_dispose_event_target branch November 18, 2021 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants