minor adjustment fixing the regression test stall

This commit is contained in:
Bernardo Damele 2013-02-09 12:19:21 +00:00
parent e48181e28d
commit f970b4f240

View File

@ -525,7 +525,11 @@ class Metasploit:
errMsg += "to open a remote session"
raise SqlmapGenericException(errMsg)
elif conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
if conf.liveTest and time.time() - start_time > METASPLOIT_SESSION_TIMEOUT:
if initialized:
send_all(proc, "exit\n")
time.sleep(2)
else:
proc.kill()
except (EOFError, IOError):