lib/zold/node/farm.rb in zold-0.11.20 vs lib/zold/node/farm.rb in zold-0.11.21
- old
+ new
@@ -75,9 +75,11 @@
strength: strength
)
end
s = @scores.pop
next unless s.valid?
+ next unless s.host == host
+ next unless s.port == port
next if s.expired?(20)
next if s.strength < strength
@semaphore.synchronize do
save(s)
before = @best.map(&:value).max