Skip to content

Commit

Permalink
Fixing Linux build issue due to shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
sharadb-amazon committed Sep 28, 2023
1 parent 45584ef commit f2e1f43
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,12 @@ void CastingServer::VerifyOrEstablishConnectionTask(chip::System::Layer * aSyste
videoPlayer->GetEndpoint(1)); // Read MACAddress from cached VideoPlayer endpoint (1) which supports WoL
CastingServer::GetInstance()->mOnConnectionSuccessClientCallback(videoPlayer);
},
[](CHIP_ERROR err) {
[](CHIP_ERROR error) {
ChipLogProgress(AppServer, "Deleting VideoPlayer from cache after connection failure: %" CHIP_ERROR_FORMAT,
err.Format());
error.Format());
CastingServer::GetInstance()->mPersistenceManager.DeleteVideoPlayer(
&CastingServer::GetInstance()->mActiveTargetVideoPlayerInfo);
CastingServer::GetInstance()->mOnConnectionFailureClientCallback(err);
CastingServer::GetInstance()->mOnConnectionFailureClientCallback(error);
});
if (err != CHIP_NO_ERROR)
{
Expand Down

0 comments on commit f2e1f43

Please sign in to comment.