lib/rmega/nodes/downloadable.rb in rmega-0.2.7 vs lib/rmega/nodes/downloadable.rb in rmega-0.3.1
- old
+ new
@@ -93,10 +93,10 @@
end
end
end
# waits for the last running threads to finish
- pool.shutdown
+ pool.wait_done
if options.file_integrity_check
file_mac = aes_cbc_mac(@node_key.aes_key, chunk_macs.sort.map(&:last).join, "\x0"*16)
if Utils.compact_to_8_bytes(file_mac) != @node_key.meta_mac