Skip to content

Commit 851e3c8

Browse files
author
bzhangxmt
committed
Fix Bug 455911 - Subscription Callback invoked a second time when connection gets dropped
Signed-off-by: bzhangxmt <zhbinbj@cn.ibm.com>
1 parent 2068983 commit 851e3c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal

org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsCallback.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private void handleActionComplete(MqttToken token)
212212

213213
// Set notified so we don't tell the user again about this action.
214214
if ( token.isComplete() ){
215-
if ( token instanceof MqttDeliveryToken || token.getActionCallback() instanceof ConnectActionListener ) {
215+
if ( token instanceof MqttDeliveryToken || token.getActionCallback() instanceof IMqttActionListener ) {
216216
token.internalTok.setNotified(true);
217217
}
218218
}

0 commit comments

Comments
 (0)