Skip to content

Commit

Permalink
Merge pull request #126 from jamwonro/fix/32bit-overflow
Browse files Browse the repository at this point in the history
Fix a timeout overflow bug in 32-bit machines
  • Loading branch information
itamarst authored Jan 26, 2020
2 parents 720df3a + bfb2f33 commit 9ca67d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crochet/_eventloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def _result(self, timeout=None):
DeprecationWarning,
stacklevel=3)
# Queue.get(None) won't get interrupted by Ctrl-C...
timeout = 2**31
timeout = 2 ** 28
self._result_set.wait(timeout)
# In Python 2.6 we can't rely on the return result of wait(), so we
# have to check manually:
Expand Down

0 comments on commit 9ca67d0

Please sign in to comment.