Install ZMQ IO loop on process startup
authorThierry Florac <thierry.florac@onf.fr>
Thu, 25 Oct 2018 14:00:29 +0200
changeset 18 cd5a88ba2223
parent 17 c958d2a066f6
child 19 a22fec10214b
Install ZMQ IO loop on process startup
src/pyams_zmq/process.py
--- a/src/pyams_zmq/process.py	Tue Mar 20 17:59:07 2018 +0100
+++ b/src/pyams_zmq/process.py	Thu Oct 25 14:00:29 2018 +0200
@@ -55,6 +55,7 @@
 
     def setup(self):
         """Creates a :attr:`context` and an event :attr:`loop` for the process."""
+        ioloop.install()
         ctx = self.context = zmq.Context()
         auth = self.auth_thread = ThreadAuthenticator(ctx)
         auth.start()