Implemented fix for Sender never dropping Special thanks to: mbrubeck

This commit is contained in:
Aaron Power 2016-11-27 17:54:08 +00:00
parent a0b12fc4a2
commit f732e7cb0d

View file

@ -155,6 +155,7 @@ fn count_files(mut language_tuple: (&LanguageType, &mut Language)) {
rs_ret_error!(rs_ret_error!(synced_tx.lock()).send(stats));
});
drop(synced_tx);
for stat in rx {
**language += stat;
}