]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/amf_controller.rb
Merge remote-tracking branch 'upstream/pull/2182'
[rails.git] / app / controllers / api / amf_controller.rb
index 2a878d248930265490c5bbbd64b91870f0678785..509cf1d77c7847a77f1b8d6f849b9aae6116850d 100644 (file)
@@ -131,7 +131,7 @@ module Api
 
     def amf_handle_error_with_timeout(call, rootobj, rootid)
       amf_handle_error(call, rootobj, rootid) do
-        OSM::Timer.timeout(API_TIMEOUT, OSM::APITimeoutError) do
+        OSM::Timer.timeout(Settings.api_timeout, OSM::APITimeoutError) do
           yield
         end
       end