forked from LBRYCommunity/lbry-sdk
minor test fixes
This commit is contained in:
parent
26a3221bac
commit
3fdcb80960
6 changed files with 12 additions and 19 deletions
lbrynet/blob/client
|
@ -168,16 +168,12 @@ class EncryptedFileSaver(EncryptedFileDownloader):
|
|||
|
||||
def _close_output(self):
|
||||
self.file_handle, file_handle = None, self.file_handle
|
||||
|
||||
#def close_file():
|
||||
if file_handle is not None:
|
||||
name = file_handle.name
|
||||
file_handle.close()
|
||||
if self.completed is False:
|
||||
os.remove(name)
|
||||
|
||||
#return threads.deferToThread(close_file)
|
||||
|
||||
def _get_write_func(self):
|
||||
def write_func(data):
|
||||
if self.stopped is False and self.file_handle is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue