Skip to content

Commit 9a138bb

Browse files
Merge pull request #195 from DylanLacey/master
Don't continue to wait for crashed Appium server
2 parents 107a90c + d85e292 commit 9a138bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/appium_lib/common/helper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ def wait max_wait=30, interval=0.5, &block
3737
until (
3838
begin
3939
result = block.call || true
40+
rescue Errno::ECONNREFUSED => e
41+
raise e
4042
rescue Exception
4143
end)
4244
sleep interval
@@ -68,6 +70,8 @@ def wait_true max_wait=30, interval=0.5, &block
6870
until (
6971
begin
7072
result = block.call
73+
rescue Errno::ECONNREFUSED => e
74+
raise e
7175
rescue Exception
7276
end)
7377
sleep interval

0 commit comments

Comments
 (0)