Skip to content

Commit

Permalink
Code review p.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian-Nordic committed Feb 2, 2023
1 parent dae108b commit 1880173
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/app/server/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ CHIP_ERROR Server::Init(const ServerInitParams & initParams)
}
}

PlatformMgr().AddEventHandler(OnPlatformEventWrapper, 0);
PlatformMgr().AddEventHandler(OnPlatformEventWrapper, reinterpret_cast<intptr_t>(this));
PlatformMgr().HandleServerStarted();

mIsDnssdReady = Dnssd::Resolver::Instance().IsInitialized();
Expand Down Expand Up @@ -405,9 +405,9 @@ void Server::CheckServerReadyEvent()
}
}

void Server::OnPlatformEventWrapper(const DeviceLayer::ChipDeviceEvent * event, intptr_t)
void Server::OnPlatformEventWrapper(const DeviceLayer::ChipDeviceEvent * event, intptr_t server)
{
Server::GetInstance().OnPlatformEvent(*event);
reinterpret_cast<Server *>(server)->OnPlatformEvent(*event);
}

void Server::RejoinExistingMulticastGroups()
Expand Down
2 changes: 1 addition & 1 deletion src/lib/dnssd/Resolver.h
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class Resolver
virtual CHIP_ERROR Init(Inet::EndPointManager<Inet::UDPEndPoint> * endPointManager) = 0;

/**
* Returns if the resolver has completed the initialization.
* Returns whether the resolver has completed the initialization.
*
* Returns true if the resolver is ready to take node resolution and discovery requests.
*/
Expand Down

0 comments on commit 1880173

Please sign in to comment.