#148 Change locking method

This commit is contained in:
kokarare1212 2022-08-19 08:58:08 +09:00
parent 30a8c07300
commit a2d631815a
No known key found for this signature in database
GPG Key ID: 0DEF4BD04A8D7E97
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ class AbsChunkedInputStream(io.BytesIO, HaltListener):
self.stream_read_halted(chunk, int(time.time() * 1000))
self.chunk_exception = None
self.wait_for_chunk = chunk
self.wait_lock.wait()
self.wait_lock.wait_for(lambda: self.available_chunks()[chunk])
if self.closed:
return
if self.chunk_exception is not None: