Skip to content

Commit

Permalink
update clean session
Browse files Browse the repository at this point in the history
  • Loading branch information
tuanhiep committed Jun 3, 2014
1 parent 6550585 commit 32d113b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package org.apache.jmeter.protocol.mqtt.client;

import java.util.concurrent.atomic.AtomicInteger;

import java.util.concurrent.atomic.AtomicLong;
import org.fusesource.hawtbuf.Buffer;
import org.fusesource.hawtbuf.UTF8Buffer;
import org.fusesource.mqtt.client.Listener;

public class ListenerforSubscribe implements Listener {

public static AtomicInteger count= new AtomicInteger(0);
public static AtomicLong count= new AtomicLong(0);
@Override
public void onConnected() {
System.out.println("Subscriber is listening");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ public void close(JavaSamplerContext context) {
if (this.connectionArray[p] != null) {
this.connectionArray[p].unsubscribe(Topics,
new CallbackforUnsubscribe());
this.connectionArray[p]
.disconnect(new CallbackforDisconnect());
this.connectionArray[p].disconnect(new CallbackforDisconnect());
}

this.connectionArray[p] = null;
Expand Down

0 comments on commit 32d113b

Please sign in to comment.