-
-
Notifications
You must be signed in to change notification settings - Fork 89
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: emit events more reliable when starting and stopping io #5097 #5101
Conversation
Send `EventType::ConnectivityChanged` when using the context methods `start_io` and `stop_io`
Needs a test that 1. Stopping i/o emits an event and connectivity status is actually disconnected/offline when the event arrives. 2. Starting i/o back emits event and connectivity status is at least connecting or so. This is for displaying online status in account manager, if connectivity status does not actually change or changes after emitting the event, emitting events is not useful. |
For me it looks like the test you mentioned in the comment ( |
This test passes even without the fix currently. Maybe need to run |
I am using this, works like a charm, would be nice to finish the test thing and merge it |
Even with |
Send
EventType::ConnectivityChanged
when using the context methodsstart_io
andstop_io
.close #5097