Permalink
Browse files

fix poll interval on base IPKernel (scale by 1000)

  • Loading branch information...
minrk committed Jun 9, 2011
1 parent a3b125a commit af50d037b72de2e4a474c3e11c7a4efa930f269a
Showing with 4 additions and 4 deletions.
  1. +4 −4 IPython/zmq/ipkernel.py
View
@@ -155,11 +155,11 @@ def do_one_iteration(self):
def start(self):
""" Start the kernel main loop.
"""
- self.poller = zmq.Poller()
- self.poller.register(self.shell_socket, zmq.POLLIN)
+ poller = zmq.Poller()
+ poller.register(self.shell_socket, zmq.POLLIN)
while True:
- self.poller.poll(self._poll_interval)
- self.do_one_iteration()
+ if poller.poll(1000*self._poll_interval):
+ self.do_one_iteration()
def record_ports(self, ports):
"""Record the ports that this kernel is using.

0 comments on commit af50d03

Please sign in to comment.