Skip to content

Tick Repeat/Delay updates #156

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 22 commits into from
Dec 4, 2016
Merged
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed total_time_remaining raising an error when the repeat stopped
  • Loading branch information
Ayuto committed Nov 16, 2016
commit b6440ef40766336cd86d765cb2b90f5f45ee8f20
2 changes: 2 additions & 0 deletions addons/source-python/packages/source-python/listeners/tick.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,8 @@ def total_time_remaining(self):

:rtype: float
"""
if self.delay_time_remaining is None:
return None
return (
self.loops_remaining * self._interval +
self.delay_time_remaining
Expand Down