Skip to content

Conversation

yinwoods
Copy link

@yinwoods yinwoods commented Sep 22, 2022

fix issue
#137

修改后的效果是每当线程离开 processEvents 方法时,必须保证 queuedEvents 队列被清空,从而避免有消息未处理

@yinwoods
Copy link
Author

之前的改法有问题,仍然存在丢消息的可能,现在将外层改为 for 循环,确保离开方法时,queuedEvents 会被清空

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.

1 participant