Skip to content

Commit f72255b

Browse files
Ranjan-DasguptaRanjan-Dasgupta
authored andcommitted
Fix IOException
Signed-off-by: Ranjan-Dasgupta <Ranjan.Dasgupta@us.ibm.com>
1 parent 8f1837c commit f72255b

1 file changed

Lines changed: 3 additions & 2 deletions

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/CommsReceiver.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,11 @@ public void run() {
165165
if (message != null) {
166166
// A new message has arrived
167167
clientState.notifyReceivedMsg(message);
168-
} else {
168+
}
169+
else {
169170
// fix for bug 719
170171
if (!clientComms.isConnected()) {
171-
throw new IOException(MqttException.REASON_CODE_CONNECTION_LOST);
172+
throw new IOException("Connection is lost.");
172173
}
173174
}
174175
}

0 commit comments

Comments
 (0)