Land #10074, Fixed bug in module cache
commit
07fbbca9f4
|
@ -131,7 +131,7 @@ class Cache
|
||||||
# Remove all instances of modules pointing to the same path. This prevents stale data hanging
|
# Remove all instances of modules pointing to the same path. This prevents stale data hanging
|
||||||
# around when modules are incorrectly typed (eg: Auxilary that should be Exploit)
|
# around when modules are incorrectly typed (eg: Auxilary that should be Exploit)
|
||||||
@module_metadata_cache.delete_if {|_, module_metadata|
|
@module_metadata_cache.delete_if {|_, module_metadata|
|
||||||
module_metadata.path.eql? metadata_obj.path
|
module_metadata.path.eql? metadata_obj.path && module_metadata.type != module_metadata.type
|
||||||
}
|
}
|
||||||
|
|
||||||
@module_metadata_cache[get_cache_key(module_instance)] = metadata_obj
|
@module_metadata_cache[get_cache_key(module_instance)] = metadata_obj
|
||||||
|
|
Loading…
Reference in New Issue