summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3d964c1)
raw | patch | inline | side by side (parent: 3d964c1)
author | Denys Fedoryshchenko <denys@visp.net.lb> | |
Fri, 6 Jan 2017 01:36:16 +0000 (03:36 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Tue, 17 Jan 2017 14:37:10 +0000 (15:37 +0100) |
Fixes: #2123
src/mqtt.c | patch | blob | history |
diff --git a/src/mqtt.c b/src/mqtt.c
index 95deb0075bb87540eb3d1b807d93340b94e92d59..6b76af97b9d7818349720e0cbcb828957ac44ea5 100644 (file)
--- a/src/mqtt.c
+++ b/src/mqtt.c
* measure; we will try to reconnect the next time we have to publish a
* message */
conf->connected = 0;
+ mosquitto_disconnect(conf->mosq);
pthread_mutex_unlock(&conf->lock);
return (-1);