Skip to content

Commit e3d4cfa

Browse files
committed
blobio: allow close() to be called more than once
1 parent 07eaa1f commit e3d4cfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygit2/blob.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def close(self):
8787
try:
8888
self._ready.wait()
8989
self._writer_closed.wait()
90-
while not self._queue.empty():
90+
while self._queue is not None and not self._queue.empty():
9191
self._queue.get()
9292
self._thread.join()
9393
except KeyboardInterrupt:

0 commit comments

Comments
 (0)