Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
tomoaki
2020-04-06 19:02:02 +09:00
parent 61d9a283f5
commit 687a78ee2c
2 changed files with 3 additions and 2 deletions

View File

@@ -178,14 +178,14 @@ void ClientRecvTask::run()
client = clientList->getClient(&data.clientID); client = clientList->getClient(&data.clientID);
if ( fwd ) if ( fwd != nullptr )
{ {
if ( client == nullptr ) if ( client == nullptr )
{ {
/* create a new client */ /* create a new client */
client = clientList->createClient(0, &data.clientID, clientType); 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); fwd->addClient(client, &nodeId);
} }
else else

View File

@@ -143,6 +143,7 @@ void Forwarder::addClient(Client* client, WirelessNodeId* id)
if ( p->_client == client ) if ( p->_client == client )
{ {
client->setForwarder(this); client->setForwarder(this);
p->setWirelessNodeId(id);
return; return;
} }
prev = p; prev = p;