lib/routemaster/redis_broker.rb in routemaster-drain-1.0.4 vs lib/routemaster/redis_broker.rb in routemaster-drain-1.0.5
- old
+ new
@@ -25,11 +25,10 @@
end
private
def _check_for_fork
- return if Process.pid != @_pid
- _cleanup
+ _cleanup unless Process.pid == @_pid
end
def _cleanup
@_pid = Process.pid
@_connections.each_value(&:quit)