fusesource / mqtt-client

A Java MQTT Client
http://mqtt-client.fusesource.org/
Apache License 2.0
1.27k stars 369 forks source link

onFailure can not be called #79

Closed Jin-here closed 7 years ago

Jin-here commented 7 years ago

`connection.listener(new Listener() {

@Override
public void onConnected() {
}

@Override
public void onDisconnected() {
}

@Override
public void onPublish(UTF8Buffer topic, Buffer body, Runnable ack) {
}

@Override
public void onFailure(Throwable value) {
}

});` when it has connected to the server, then i close the server. when i run it in pc, the onFailure() method can be called, but when i run it in the phone, the onFailure() can not be called. why?