forked from LBRYCommunity/lbry-sdk
Revert "fix BlobFile._close_file"
reverts 5d24f7
This commit is contained in:
parent
a1fb5ca352
commit
8786133cd4
2 changed files with 2 additions and 3 deletions
|
@ -13,7 +13,7 @@ at anytime.
|
|||
*
|
||||
|
||||
### Fixed
|
||||
* Fixed non-blocking call in `BlobFile._close_writer`
|
||||
*
|
||||
*
|
||||
|
||||
### Deprecated
|
||||
|
|
|
@ -273,13 +273,12 @@ class BlobFile(HashBlob):
|
|||
file_handle.close()
|
||||
self.readers -= 1
|
||||
|
||||
@defer.inlineCallbacks
|
||||
def _close_writer(self, writer):
|
||||
if writer.write_handle is not None:
|
||||
log.debug("Closing %s", str(self))
|
||||
name = writer.write_handle.name
|
||||
writer.write_handle.close()
|
||||
yield threads.deferToThread(os.remove, name)
|
||||
threads.deferToThread(os.remove, name)
|
||||
writer.write_handle = None
|
||||
|
||||
def _save_verified_blob(self, writer):
|
||||
|
|
Loading…
Reference in a new issue