Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

Commit

Permalink
make timer's again call _libev_unref and _python_incref
Browse files Browse the repository at this point in the history
  • Loading branch information
schmir committed Sep 16, 2012
1 parent 8adaeca commit c05d3a7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pypycore.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,15 +791,15 @@ def start(self, callback, *args, **kw):
def at(self):
return self._watcher.at

def again(self, callback, *args):
update = True
def again(self, callback, *args, **kw):
update = kw.get("update", True)
self.callback = callback
self.args = args
# LIBEV_UNREF
self._libev_unref()
if update:
libev.ev_now_update(self.loop._ptr)
libev.ev_timer_again(self.loop._ptr, self._watcher)
# PYTHON_INCREF
self._python_incref()


class signal(watcher):
Expand Down

0 comments on commit c05d3a7

Please sign in to comment.