diff --git a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb index 027e57ba2..ea462be2f 100644 --- a/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +++ b/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb @@ -158,7 +158,7 @@ module Vagrant oldest = Time.now.to_i - 60 leasedir.children.each do |child| # Delete old, invalid leases while we're looking - if child.file? && child.mtime < oldest + if child.file? && child.mtime.to_i < oldest child.delete end