runtime/PyroServer.py
changeset 2492 7dd551ac2fa0
parent 2476 1881d0ff5ae2
child 2603 1ffdc62784cf
equal deleted inserted replaced
2491:362039519454 2492:7dd551ac2fa0
    39             print(_("Publishing service on local network"))
    39             print(_("Publishing service on local network"))
    40 
    40 
    41         sys.stdout.flush()
    41         sys.stdout.flush()
    42 
    42 
    43     def PyroLoop(self, when_ready):
    43     def PyroLoop(self, when_ready):
    44         if self._to_be_published(): self.Publish()
    44         if self._to_be_published():
       
    45             self.Publish()
       
    46 
    45         while self.continueloop:
    47         while self.continueloop:
    46             Pyro.config.PYRO_MULTITHREADED = 0
    48             Pyro.config.PYRO_MULTITHREADED = 0
    47             pyro.initServer()
    49             pyro.initServer()
    48             self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
    50             self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port)
    49 
    51