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

connectionHandler!.connectionStatus and _connectionStatus are not in sync and library is not trying to reconnect #561

Open
umer-ilyas opened this issue Aug 26, 2024 · 1 comment

Comments

@umer-ilyas
Copy link

flutter version: 3.24.1
mqtt_clinet: 10.5.1

sometimes connectionHandler!.connectionStatus.status is MqttConnectionState.connecting

but _connectionStatus.status is MqttConnectionState.disconnected

the state of client is out of sync

I could not save the logs; but in this state client is not trying to reconnect even though auto-reconnect is enabled

image

@shamblett
Copy link
Owner

Whatever output this is doesn't show why 'the client is not trying to reconnect even though auto-reconnect is enabled' it just shows that something called _connectionStatus doesn't match connectionHandler!.connectionStatus for some reason. There are many reasons why the client may not go reconnect even if auto-reconnect is enabled.

What actual proof do you have that this status mismatch causes anything? Without logs of your disconnect and auto reconenct period ther;s nothing I can really do.

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

3 participants
@shamblett @umer-ilyas and others