mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-05 20:45:49 +01:00
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:
parent
d0b180a41d
commit
4ab88eb572
1 changed files with 4 additions and 10 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue