Skip to content

Commit da0468d

Browse files
author
Fernando Governatore
committed
Should pass IMqttActionListener on subscribe (#262)
On subscribe, a failure would be reported but onSuccess would never be called. The reason was not passing the IMqttActionListener forward to MqttClient.
1 parent f19ada0 commit da0468d

File tree

1 file changed

+1
-1
lines changed
  • org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service

1 file changed

+1
-1
lines changed

org.eclipse.paho.android.service/src/main/java/org/eclipse/paho/android/service/MqttConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ public void subscribe(String[] topicFilters, int[] qos, String invocationContext
698698
IMqttActionListener listener = new MqttConnectionListener(resultBundle);
699699
try {
700700

701-
myClient.subscribe(topicFilters, qos,messageListeners);
701+
myClient.subscribe(topicFilters, qos, null, listener, messageListeners);
702702
} catch (Exception e){
703703
handleException(resultBundle, e);
704704
}

0 commit comments

Comments
 (0)