mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-16 08:56:51 +01:00
BugFix of #126
and the content of the conf file matched with the sample program Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -402,7 +402,6 @@ Client::Client(bool secure)
|
||||
_connAck = 0;
|
||||
_waitWillMsgFlg = false;
|
||||
_sessionStatus = false;
|
||||
_otaClient = 0;
|
||||
_prevClient = 0;
|
||||
_nextClient = 0;
|
||||
_clientSleepPacketQue.setMaxSize(MAX_SAVED_PUBLISH);
|
||||
@@ -570,7 +569,7 @@ void Client::setSessionStatus(bool status)
|
||||
|
||||
bool Client::erasable(void)
|
||||
{
|
||||
return _sessionStatus || !_hasPredefTopic;
|
||||
return _sessionStatus && !_hasPredefTopic && _forwarder == 0;
|
||||
}
|
||||
|
||||
void Client::updateStatus(MQTTSNPacket* packet)
|
||||
|
||||
Reference in New Issue
Block a user