Permalink
Browse files

fix async watcher for libev_connection

  • Loading branch information...
michaelplaing committed Jun 13, 2014
1 parent 4adc88b commit 0d68dee19ee6ae1a51f7fb57a1b47206d45c6882
Showing with 5 additions and 1 deletion.
  1. +5 −1 pika/adapters/libev_connection.py
@@ -144,14 +144,18 @@ def _adapter_connect(self):
self._PIKA_TO_LIBEV_ARRAY[self.event_state],
self._handle_events)
- self.async = pyev.Async(self.ioloop, self._handle_events)
+ self.async = pyev.Async(self.ioloop, self._noop_callable)
+ self.async.start()
if self._on_signal_callback:
global_sigterm_watcher.start()
if self._on_signal_callback:
global_sigint_watcher.start()
self._io_watcher.start()
return error
+
+ def _noop_callable(self, *args, **kwargs):
+ pass
def _init_connection_state(self):
"""Initialize or reset all of our internal state variables for a given

0 comments on commit 0d68dee

Please sign in to comment.