Issue #23812: Fix getter-cancellation with many pending getters code path

This commit is contained in:
Yury Selivanov 2015-08-06 14:03:38 -04:00
parent 86b34da5ef
commit 159fbdd805
2 changed files with 37 additions and 2 deletions

View file

@ -228,7 +228,7 @@ class Queue:
'queue non-empty, why are getters waiting?')
getter = self._getters.popleft()
self._put_internal(item)
self.__put_internal(item)
# getter cannot be cancelled, we just removed done getters
getter.set_result(item)