Hmm, you're right. You can add
if current_t <= 0: self.restart()
just under the line that sets current_t in the render method, around line 133, and that should fix it.