@@ -493,7 +493,7 @@ public static void OperationSubscribe(int clientIdx) {
493493 subscribePacketBuilder .withSubscription (clientsData .get (clientIdx ).clientId , QOS .AT_LEAST_ONCE );
494494 subscribePacketBuilder .withSubscription (clientsData .get (clientIdx ).sharedTopic , QOS .AT_LEAST_ONCE );
495495 try {
496- client .subscribe (subscribePacketBuilder .build ()). get ( operationFutureWaitTime , TimeUnit . SECONDS ) ;
496+ client .subscribe (subscribePacketBuilder .build ());
497497 } catch (Exception ex ) {
498498 // PrintLog("[OP] Subscribe had an exception! Exception: " + ex);
499499 ex .printStackTrace ();
@@ -526,8 +526,7 @@ public static void OperationUnsubscribe(int clientIdx) {
526526 unsubscribePacketBuilder .withSubscription (clientsData .get (clientIdx ).clientId );
527527 unsubscribePacketBuilder .withSubscription (clientsData .get (clientIdx ).sharedTopic );
528528 try {
529- client .unsubscribe (unsubscribePacketBuilder .build ()).get (operationFutureWaitTime , TimeUnit .SECONDS );
530- } catch (Exception ex ) {
529+ client .unsubscribe (unsubscribePacketBuilder .build ());
531530 // PrintLog("[OP] Unsubscribe had an exception! Exception: " + ex);
532531 ex .printStackTrace ();
533532 if (configFilePrinter != null ) {
@@ -554,7 +553,7 @@ public static void OperationUnsubscribeBad(int clientIdx) {
554553 // PrintLog("[OP] About to unsubscribe (bad) client ID " + clientIdx);
555554 UnsubscribePacketBuilder unsubscribePacketBuilder = new UnsubscribePacketBuilder ("Non_existent_topic_here" );
556555 try {
557- client .unsubscribe (unsubscribePacketBuilder .build ()). get ( operationFutureWaitTime , TimeUnit . SECONDS ) ;
556+ client .unsubscribe (unsubscribePacketBuilder .build ());
558557 } catch (Exception ex ) {
559558 // PrintLog("[OP] Unsubscribe (bad) had an exception! Exception: " + ex);
560559 ex .printStackTrace ();
@@ -597,7 +596,7 @@ public static void OperationPublish(int clientIdx, QOS qos, String topic) {
597596 publishPacketBuilder .withUserProperties (propertyList );
598597
599598 try {
600- client .publish (publishPacketBuilder .build ()). get ( operationFutureWaitTime , TimeUnit . SECONDS ) ;
599+ client .publish (publishPacketBuilder .build ());
601600 } catch (Exception ex ) {
602601 // PrintLog("[OP] Publish with QoS " + qos + " with topic " + topic + " had an exception! Exception: " + ex);
603602 ex .printStackTrace ();
0 commit comments