diff --git a/lib/gitlab/import_export/file_importer.rb b/lib/gitlab/import_export/file_importer.rb
index ff7174c995fdac35e4509f7214ecbc3f6b89165b..4b5f1f26286eb21cfd5c08cb2e05b893d2273d0c 100644
--- a/lib/gitlab/import_export/file_importer.rb
+++ b/lib/gitlab/import_export/file_importer.rb
@@ -33,7 +33,7 @@ module Gitlab
           if File.exist?(@archive_file)
             yield
 
-            break
+            return true
           else
             sleep(2**retry_number)
           end