Check if session responds to response_timeout

bug/bundler_fix
Meatballs 2015-05-09 11:21:45 +01:00
parent b33efd8b8d
commit 98d531e053
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 3 additions and 1 deletions

View File

@ -1778,7 +1778,9 @@ class Core
end end
ensure ensure
# Restore timeout for each session # Restore timeout for each session
session.response_timeout = last_known_timeout if last_known_timeout if session.respond_to?(:response_timeout)
session.response_timeout = last_known_timeout if last_known_timeout
end
end end
# If the session isn't a meterpreter or shell type, it # If the session isn't a meterpreter or shell type, it
# could be a VNC session (which can't run commands) or # could be a VNC session (which can't run commands) or