Commit 5e104e88 authored by Denis Bilenko's avatar Denis Bilenko

minor change - don't start already started watchers in cares.pxi

parent fd037e9d
......@@ -329,9 +329,10 @@ cdef public class ares_channel [object PyGeventAresChannelObject, type PyGeventA
watcher = self.loop.io(socket, events)
self._watchers[socket] = watcher
elif events:
if watcher._watcher.events != events:
watcher.stop()
watcher._watcher.events = events
if watcher._watcher.events == events:
return
watcher.stop()
watcher._watcher.events = events
else:
watcher.stop()
self._watchers.pop(socket, None)
......
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