fix for potential access to no longer existing Message instances in DataHandler, validate MQTT topic during argument parsing, extended DataHandler registration to allow registering multiple instances at once, only create MqttHandler if active

This commit is contained in:
john30
2017-08-27 09:40:43 +02:00
parent b15efba1db
commit ca7c8bd4fa
7 changed files with 86 additions and 57 deletions
+2
View File
@@ -2559,8 +2559,10 @@ void MessageMap::invalidateCache(Message* message) {
void MessageMap::addPollMessage(bool toFront, Message* message) {
if (message != NULL && message->getPollPriority() > 0) {
lock();
message->m_lastPollTime = toFront ? 0 : m_pollMessages.size();
m_pollMessages.push(message);
unlock();
}
}