Instance: remove partitions loop from {Found,Lost}Neighbor()
These are global events.
This commit is contained in:
parent
5afec8256a
commit
00ed836aa9
@ -130,15 +130,13 @@ Instance::OnDatabaseSongRemoved(const char *uri) noexcept
|
|||||||
void
|
void
|
||||||
Instance::FoundNeighbor(gcc_unused const NeighborInfo &info) noexcept
|
Instance::FoundNeighbor(gcc_unused const NeighborInfo &info) noexcept
|
||||||
{
|
{
|
||||||
for (auto &partition : partitions)
|
EmitIdle(IDLE_NEIGHBOR);
|
||||||
partition.EmitIdle(IDLE_NEIGHBOR);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Instance::LostNeighbor(gcc_unused const NeighborInfo &info) noexcept
|
Instance::LostNeighbor(gcc_unused const NeighborInfo &info) noexcept
|
||||||
{
|
{
|
||||||
for (auto &partition : partitions)
|
EmitIdle(IDLE_NEIGHBOR);
|
||||||
partition.EmitIdle(IDLE_NEIGHBOR);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user