Skip to content

Commit 5f433e3

Browse files
committed
Fix typo in thread_manager
1 parent 2c8f27c commit 5f433e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/msf/core/thread_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def spawn(name, crit, *args, &block)
108108
elog("Call Stack\n#{e.backtrace.join("\n")}")
109109
raise e
110110
ensure
111-
if framework.db and framework.db.active framework.db.is_local?
111+
if framework.db && framework.db.active && framework.db.is_local?
112112
# NOTE: despite the Deprecation Warning's advice, this should *NOT*
113113
# be ActiveRecord::Base.connection.close which causes unrelated
114114
# threads to raise ActiveRecord::StatementInvalid exceptions at

0 commit comments

Comments
 (0)