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);
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

View File

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