mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 17:06:51 +01:00
Update: Add Pre-defined-Topic
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -116,10 +116,8 @@ void MQTTSNConnectionHandler::handleConnect(Client* client, MQTTSNPacket* packet
|
||||
/* renew the TopicList */
|
||||
if (topics)
|
||||
{
|
||||
delete topics;
|
||||
topics->eraseNormal();;
|
||||
}
|
||||
topics = new Topics();
|
||||
client->setTopics(topics);
|
||||
client->setSessionStatus(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user