Commit b3ba4a97 authored by Denis Bilenko's avatar Denis Bilenko

update comment

parent 0d83d747
...@@ -116,8 +116,9 @@ static void gevent_callback(struct PyGeventLoopObject* loop, PyObject* callback, ...@@ -116,8 +116,9 @@ static void gevent_callback(struct PyGeventLoopObject* loop, PyObject* callback,
} }
} }
if (!ev_is_active(c_watcher)) { if (!ev_is_active(c_watcher)) {
/* watcher will never be run again: calling stop() will clear 'callback' and 'args' /* Watcher will never be run again (because it was stopped by libev).
* also it will release the reference held by watcher to itself and does ref() if unref() was done before */ * Let's call stop() to clean up 'callback' and 'args' properties.
* In this case, py_events might had EV_ERROR bit set. */
gevent_stop(watcher, loop); gevent_stop(watcher, loop);
} }
end: end:
......
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