Instance: remove partitions loop from {Found,Lost}Neighbor()

These are global events.
This commit is contained in:
Max Kellermann 2020-01-20 12:18:43 +01:00
parent 5afec8256a
commit 00ed836aa9

View File

@ -130,15 +130,13 @@ Instance::OnDatabaseSongRemoved(const char *uri) noexcept
void
Instance::FoundNeighbor(gcc_unused const NeighborInfo &info) noexcept
{
for (auto &partition : partitions)
partition.EmitIdle(IDLE_NEIGHBOR);
EmitIdle(IDLE_NEIGHBOR);
}
void
Instance::LostNeighbor(gcc_unused const NeighborInfo &info) noexcept
{
for (auto &partition : partitions)
partition.EmitIdle(IDLE_NEIGHBOR);
EmitIdle(IDLE_NEIGHBOR);
}
#endif