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
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
......
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