lib/flammarion/revelator.rb in flammarion-0.2.0 vs lib/flammarion/revelator.rb in flammarion-0.2.1
- old
+ new
@@ -43,10 +43,10 @@
raise SetupError.new("You must have either electron or google-chrome installed and accesible via your path.") unless @browser
end
# @api private
def wait_for_a_connection
- Timeout.timeout(20) { sleep 0.5 while @sockets.empty? }
+ Timeout.timeout(20) { sleep 0.01 while @sockets.empty? }
rescue Timeout::Error
raise SetupError.new("Timed out while waiting for a connecting using #{@browser.name}.")
end
private