You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a code that calls client.disconnect() when certain conditions are met.
However, I also want to disconnect when closing the fragment.
When I try to call client.disconnect() again, after the first one, the library crashes:
Process: it.reyboz.bustorino.debug, PID: 26148
java.lang.IllegalArgumentException: Invalid ClientHandle >wss://mapi.5t.torino.it:443/scre:mqtt-explorer-f173f581:it.reyboz.bustorino.debug<
at info.mqtt.android.service.MqttService.getConnection(MqttService.kt:492)
at info.mqtt.android.service.MqttService.disconnect(MqttService.kt:332)
at info.mqtt.android.service.MqttAndroidClient.disconnect(MqttAndroidClient.kt:284)
The text was updated successfully, but these errors were encountered:
I have a code that calls
client.disconnect()
when certain conditions are met.However, I also want to disconnect when closing the fragment.
When I try to call
client.disconnect()
again, after the first one, the library crashes:The text was updated successfully, but these errors were encountered: