diff -r 9d1547578f55 -r e8cf68d69447 Beremiz_service.py --- a/Beremiz_service.py Thu Jan 11 15:39:58 2018 +0100 +++ b/Beremiz_service.py Thu Jan 11 15:41:20 2018 +0100 @@ -418,8 +418,8 @@ while self.continueloop: pyro.initServer() self.daemon = pyro.Daemon(host=self.ip_addr, port=self.port) - # pyro never frees memory after connection close if no timeout set - self.daemon.setTimeout(1); + # pyro never frees memory after connection close if no timeout set + self.daemon.setTimeout(1) self.Start() self.daemon.requestLoop() self.daemon.sock.close() @@ -467,7 +467,6 @@ sys.stdout.flush() - def _stop(self): if self.plcobj is not None: self.plcobj.StopPLC() @@ -578,7 +577,7 @@ if wampconf is None: _wampconf = os.path.join(WorkingDir, "wampconf.json") - if os.path.exists(_wampconf) : + if os.path.exists(_wampconf): wampconf = _wampconf if wampconf is not None: @@ -605,9 +604,9 @@ if wampconf is not None: try: - _wampconf = WC.LoadWampClientConf(wampconf) # if project WAMP config is added - if _wampconf : - if _wampconf["url"]: #TODO : test more ? + _wampconf = WC.LoadWampClientConf(wampconf) + if _wampconf: + if _wampconf["url"]: # TODO : test more ? WC.RegisterWampClient(wampconf, wampsecret) pyruntimevars["wampsession"] = WC.GetSession WC.SetServer(pyroserver)