diff --git a/Library/Homebrew/cmd/pull.rb b/Library/Homebrew/cmd/pull.rb
index be1d331a8a1644a7c458c34328903d15bfe2c522..1f6ae8acc416b9fbe5ebc727fb8451d5a73705c6 100644
--- a/Library/Homebrew/cmd/pull.rb
+++ b/Library/Homebrew/cmd/pull.rb
@@ -552,7 +552,7 @@ module Homebrew
         # We're in the cache; make sure to force re-download
         while true do
           begin
-            retry_count
+            retry_count = retry_count
             curl url, "-o", filename
             break
           rescue