diff --git a/lib/takeover/metasploit.py b/lib/takeover/metasploit.py index 0c6eb5bbc..165914ddd 100644 --- a/lib/takeover/metasploit.py +++ b/lib/takeover/metasploit.py @@ -522,7 +522,7 @@ class Metasploit: initialized = True - if time.time() - start_time > METASPLOIT_SESSION_TIMEOUT: + elif time.time() - start_time > METASPLOIT_SESSION_TIMEOUT: proc.kill() errMsg = "timeout occurred while attempting " errMsg += "to open a remote session"