lots o bugs fixed discovered while using desktop app

This commit is contained in:
Lex Berezhny 2019-01-07 15:35:03 -05:00
parent 3fdcb80960
commit 16e596ec87
7 changed files with 29 additions and 25 deletions

View file

@ -236,7 +236,7 @@ class EncryptedFileManager:
def reflect_lbry_files(self):
sem = defer.DeferredSemaphore(self.CONCURRENT_REFLECTS)
ds = []
sd_hashes_to_reflect = yield self.storage.get_streams_to_re_reflect()
sd_hashes_to_reflect = yield f2d(self.storage.get_streams_to_re_reflect())
for lbry_file in self.lbry_files:
if lbry_file.sd_hash in sd_hashes_to_reflect:
ds.append(sem.run(reflect_file, lbry_file))