Skip to content

Commit

Permalink
Should pass IMqttActionListener on subscribe (#262)
Browse files Browse the repository at this point in the history
  On subscribe, a failure would be reported but onSuccess would never be
called. The reason was not passing the IMqttActionListener forward to
MqttClient.

Signed-off-by: Fernando Governatore <[email protected]>
  • Loading branch information
Fernando Governatore committed Oct 10, 2019
1 parent f19ada0 commit d87453c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ public void subscribe(String[] topicFilters, int[] qos, String invocationContext
IMqttActionListener listener = new MqttConnectionListener(resultBundle);
try {

myClient.subscribe(topicFilters, qos,messageListeners);
myClient.subscribe(topicFilters, qos, null, listener, messageListeners);
} catch (Exception e){
handleException(resultBundle, e);
}
Expand Down

0 comments on commit d87453c

Please sign in to comment.