mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-13 07:26:52 +01:00
@@ -178,14 +178,14 @@ void ClientRecvTask::run()
|
||||
|
||||
client = clientList->getClient(&data.clientID);
|
||||
|
||||
if ( fwd )
|
||||
if ( fwd != nullptr )
|
||||
{
|
||||
if ( client == nullptr )
|
||||
{
|
||||
/* create a new client */
|
||||
client = clientList->createClient(0, &data.clientID, clientType);
|
||||
}
|
||||
/* Add to af forwarded client list of forwarder. */
|
||||
/* Add to a forwarded client list of forwarder. */
|
||||
fwd->addClient(client, &nodeId);
|
||||
}
|
||||
else
|
||||
|
||||
@@ -143,6 +143,7 @@ void Forwarder::addClient(Client* client, WirelessNodeId* id)
|
||||
if ( p->_client == client )
|
||||
{
|
||||
client->setForwarder(this);
|
||||
p->setWirelessNodeId(id);
|
||||
return;
|
||||
}
|
||||
prev = p;
|
||||
|
||||
Reference in New Issue
Block a user