Msf::Framework#threads?
MSP-11605 `Msf::Framework#threads?` returns whether `Msf::Framework#threads` was ever initialized. If `Msf::Framework#threads?` is true, then threads need to be cleaned up, while if it is false then no threads need to be cleaned up from the current framework.bug/bundler_fix
parent
d9a25005a6
commit
eb3ff769a9
|
@ -218,6 +218,16 @@ class Framework
|
|||
}
|
||||
end
|
||||
|
||||
# Whether {#threads} has been initialized
|
||||
#
|
||||
# @return [true] if {#threads} has been initialized
|
||||
# @return [false] otherwise
|
||||
def threads?
|
||||
synchronize {
|
||||
instance_variable_defined? :@threads
|
||||
}
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
# @!attribute options
|
||||
|
|
Loading…
Reference in New Issue