revert test for connectedness in mqtt shutdown

An assertion's firing indicating I don't understand what's going
on. Let's study some more first.
This commit is contained in:
Eric House 2022-08-20 09:55:59 -07:00
parent d0b180a41d
commit 4ab88eb572

View file

@ -489,22 +489,16 @@ public class MQTTUtils extends Thread
String action = null;
IMqttToken token = null;
try {
boolean isConnected = client.isConnected();
switch ( ii ) {
case 0:
if ( isConnected ) {
action = "unsubscribe";
token = client.unsubscribe( mTopics );
}
break; // not continue, which skips the Log() below
case 1:
if ( isConnected ) {
action = "disconnect";
token = client.disconnect();
}
break;
case 2:
Assert.assertTrueNR( !isConnected );
action = "close";
client.close();
break;