mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-23 19:38:31 +02:00
renamed ClientInfo::clientId to ClientInfo::id
This commit is contained in:
parent
a860f60f0c
commit
07f395395b
2 changed files with 7 additions and 7 deletions
|
@ -56,7 +56,7 @@ Config::Config()
|
|||
{
|
||||
GroupPtr group = make_shared<Group>();
|
||||
group->fromJson(*it);
|
||||
// if (client->clientId.empty() || getClientInfo(client->clientId))
|
||||
// if (client->id.empty() || getClientInfo(client->id))
|
||||
// continue;
|
||||
groups.push_back(group);
|
||||
}
|
||||
|
@ -95,7 +95,7 @@ ClientInfoPtr Config::getClientInfo(const std::string& clientId) const
|
|||
|
||||
for (auto client: clients)
|
||||
{
|
||||
if (client->clientId == clientId)
|
||||
if (client->id == clientId)
|
||||
return client;
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ GroupPtr Config::getGroup(ClientInfoPtr client)
|
|||
{
|
||||
for (auto c: group->clients)
|
||||
{
|
||||
if (c->clientId == client->clientId)
|
||||
if (c->id == client->id)
|
||||
return group;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue