Skip to content

Commit e2a7ece

Browse files
committed
Merge branch 'goliath' into loot_and_creds
2 parents a491407 + 5f433e3 commit e2a7ece

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)