Commit 13d4c91

mo <mo.khan@gmail.com>
2019-07-24 21:19:33
add a timeout of 1 minute
1 parent 180ce0d
Changed files (1)
lib/examine.rb
@@ -3,6 +3,7 @@ require "examine/version"
 require 'down'
 require 'socket'
 require 'thor'
+require 'timeout'
 
 module Examine
   class Error < StandardError; end
@@ -88,7 +89,9 @@ module Examine
 
       def wait_until(command)
         puts command
-        wait until system(command)
+        Timeout.timeout(60) do
+          wait until system(command)
+        end
       end
     end