Commit 00ed836a authored by Max Kellermann's avatar Max Kellermann

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

These are global events.
parent 5afec825
...@@ -130,15 +130,13 @@ Instance::OnDatabaseSongRemoved(const char *uri) noexcept ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment