Commit afeab520 authored by Denis Bilenko's avatar Denis Bilenko

callbacks.c: use "ev_is_active" rather than "ev_active", the latter is only defined in ev.c

parent 3555cfe8
...@@ -157,7 +157,7 @@ static void gevent_simple_callback(struct ev_loop *_loop, void *watcher, int rev ...@@ -157,7 +157,7 @@ static void gevent_simple_callback(struct ev_loop *_loop, void *watcher, int rev
self = ((struct __pyx_obj_6gevent_4core_timer *)(((char *)watcher) - timer_offsetof)); self = ((struct __pyx_obj_6gevent_4core_timer *)(((char *)watcher) - timer_offsetof));
Py_INCREF(self); Py_INCREF(self);
gevent_callback_simple(self->callback, (PyObject*)self, self->args, (PyObject*)self->loop); gevent_callback_simple(self->callback, (PyObject*)self, self->args, (PyObject*)self->loop);
if (!ev_active(watcher)) { if (!ev_is_active(watcher)) {
gevent_stop((PyObject*)self); gevent_stop((PyObject*)self);
} }
Py_DECREF(self); Py_DECREF(self);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment