Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mqtt-client-java1.4-uber/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
<parent>
<groupId>org.fusesource.mqtt-client</groupId>
<artifactId>mqtt-client-project</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.14.sofia</version>
</parent>


<groupId>org.fusesource.mqtt-client</groupId>
<artifactId>mqtt-client-java1.4-uber</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.14.sofia</version>

<name>${project.artifactId}</name>
<description>
Expand Down
4 changes: 2 additions & 2 deletions mqtt-client-website/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
<parent>
<groupId>org.fusesource.mqtt-client</groupId>
<artifactId>mqtt-client-project</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.14.sofia</version>
</parent>

<groupId>org.fusesource.mqtt-client</groupId>
<artifactId>mqtt-client-website</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.14.sofia</version>
<packaging>war</packaging>

<name>${project.artifactId}</name>
Expand Down
4 changes: 2 additions & 2 deletions mqtt-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
<parent>
<groupId>org.fusesource.mqtt-client</groupId>
<artifactId>mqtt-client-project</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.14.sofia</version>
</parent>

<groupId>org.fusesource.mqtt-client</groupId>
<artifactId>mqtt-client</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.14.sofia</version>
<packaging>bundle</packaging>

<name>${project.artifactId}</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/**
* Copyright (C) 2010-2012, FuseSource Corp. All rights reserved.
* Copyright (C) 2016, Indra Sistemas S.A. All rights reserved
*
* http://fusesource.com
*
Expand Down Expand Up @@ -634,15 +635,20 @@ public void kill(final Callback<Void> onComplete) {
heartBeatMonitor.stop();
heartBeatMonitor = null;
}
transport.stop(new Task() {
@Override
public void run() {
listener.onDisconnected();
if (onComplete != null) {
onComplete.onSuccess(null);
}
}
});
/*
* Fix: in some scenarios, a NullPointerException was raised when the connection was killed.
*/
if (transport!=null) {
transport.stop(new Task() {
@Override
public void run() {
listener.onDisconnected();
if (onComplete != null) {
onComplete.onSuccess(null);
}
}
});
}
}

public void publish(String topic, byte[] payload, QoS qos, boolean retain, Callback<Void> cb) {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<groupId>org.fusesource.mqtt-client</groupId>
<artifactId>mqtt-client-project</artifactId>
<version>1.15-SNAPSHOT</version>
<version>1.14.sofia</version>
<packaging>pom</packaging>

<name>${project.artifactId}</name>
Expand Down