Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
d8445412
Commit
d8445412
authored
Jun 03, 2019
by
Micha Mueller
Browse files
Clean up MQTTPusher properly
parent
3d6406d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
dcdbpusher/MQTTPusher.cpp
View file @
d8445412
...
...
@@ -58,6 +58,8 @@ MQTTPusher::~MQTTPusher() {
if
(
_connected
)
{
mosquitto_disconnect
(
_mosq
);
}
mosquitto_destroy
(
_mosq
);
mosquitto_lib_cleanup
();
}
void
MQTTPusher
::
push
()
{
...
...
@@ -160,6 +162,7 @@ void MQTTPusher::push() {
}
}
}
delete
[]
reads
;
mosquitto_disconnect
(
_mosq
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment