This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a slight possibility of not aborting until after twice the reques…
…ted timeout. Normally by the time self._results.get() times out the abort timer (self._timer) should have already fired. But there's a remote possibility that it hasn't, in which case the existing self._aborted.value check returns False, and we continue the loop into another self._results.get() call. Instead just make sure the abort timer has already fired by joining on it--in most cases this will immediately return.
- Loading branch information