Open watta90 opened 1 year ago
Hello, I have also encountered a situation where I cannot receive messages, but I cannot determine if it is caused by a deadlock.
I reproduced the issue using MQTT v5 stable release1.2.5, and resolved it by adding a thread. Additionally, changing from MqttClient to MqttAsyncClient also resolves the issue.
If we call subscribe in
MqttCallback.connectComplete(boolean arg0, String arg1)
we get a deadlock when we try to subscribe to more than 5 topics. I don't know if this has to do with my usecase only.Example to reproduce error
Is this the intended behaviour or is it a bug?
To get around this problem you can place all the subscribe actions on a separate thread in your application. Like this.