Fix bug with remove_from_cache

GSoC/Meterpreter_Web_Console
christopher lee 2018-02-28 11:21:34 -06:00
parent 1686b82a40
commit cea61e7aa4
1 changed files with 3 additions and 2 deletions

View File

@ -107,11 +107,12 @@ class Cache
#######
def remove_from_cache(module_name)
removed = @module_metadata_cache.delete_if {|_, module_metadata|
old_cache_size = @module_metadata_cache.size
@module_metadata_cache.delete_if {|_, module_metadata|
module_metadata.ref_name.eql? module_name
}
return !removed.empty?
return old_cache_size != @module_metadata_cache.size
end
def wait_for_load