diff --git a/org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsCallback.java b/org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsCallback.java index bcf2a5349..118cee8a4 100644 --- a/org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsCallback.java +++ b/org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/internal/CommsCallback.java @@ -128,6 +128,7 @@ public void stop() { // @TRACE 700=stopping log.fine(CLASS_NAME, methodName, "700"); synchronized (lifecycle) { + current_state = State.STOPPED; target_state = State.STOPPED; } if (!Thread.currentThread().equals(callbackThread)) {