mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-05 14:57:30 +01:00
abort if retries count exceeded
git-svn-id: file:///home/svn/framework3/trunk@11263 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
ac0222f73d
commit
1da08b0bdc
@ -67,6 +67,10 @@ class Metasploit3 < Msf::Auxiliary
|
||||
vprint_status("Retrying in #{delay} seconds...")
|
||||
select(nil, nil, nil, delay)
|
||||
}
|
||||
# If we tried all these attempts, and we still got a retry condition,
|
||||
# we'll just give up.. Must be that nasty blacklist algorithm kicking
|
||||
# our butt.
|
||||
return :abort if ret == :retry
|
||||
ret
|
||||
}
|
||||
rescue ::Rex::ConnectionError
|
||||
|
Loading…
Reference in New Issue
Block a user