Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.

Commit

Permalink
Increase select timeout from 10s to one day, fixes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
erdewit committed Sep 21, 2020
1 parent 4346706 commit 32adc55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nest_asyncio.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def _run_once(self):
heappop(scheduled)

timeout = 0 if ready or self._stopping \
else min(max(0, scheduled[0]._when - now), 10) if scheduled \
else min(max(0, scheduled[0]._when - now), 86400) if scheduled \
else None
event_list = self._selector.select(timeout)
self._process_events(event_list)
Expand Down

0 comments on commit 32adc55

Please sign in to comment.