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

disconnect event 发送时机建议调整一下 #84

Open
jsbxyyx opened this issue Oct 19, 2024 · 0 comments
Open

disconnect event 发送时机建议调整一下 #84

jsbxyyx opened this issue Oct 19, 2024 · 0 comments

Comments

@jsbxyyx
Copy link

jsbxyyx commented Oct 19, 2024

self.__send_to_listeners(EVENT_DISCONNECT)
self.stop()

建议调整如下

self.stop()
self.__send_to_listeners(EVENT_DISCONNECT)

原因:当抛出ConnectionError,可以直接调用start再次重连

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

No branches or pull requests

1 participant