diff --git a/lib/ildus/server/handler.rb b/lib/ildus/server/handler.rb index 089c27f..96427d9 100644 --- a/lib/ildus/server/handler.rb +++ b/lib/ildus/server/handler.rb @@ -185,7 +185,7 @@ module Ildus else addr = IPAddr.new(addr) end - @commit ||= @domain.update_host(host, addr) + @commit = @domain.update_host(host, addr) || @commit rescue HostNotFoundError prot_msg 425, host rescue RecordNotFoundError @@ -203,7 +203,7 @@ module Ildus else addr = IPAddr.new(addr) end - @commit ||= @domain.update_host(host, addr) + @commit = @domain.update_host(host, addr) || @commit rescue HostNotFoundError prot_msg 425, host rescue RecordNotFoundError