# HG changeset patch # User dporopat # Date 1524040816 -7200 # Node ID 6417f5b59eff48437e75dde4bd1b0f61e9c806fb # Parent 8fd73c6c8aa9974e0b68a8e497a48e5d59ae3638 #2486 WampClient needs pyro.plcobj before registration calls. diff -r 8fd73c6c8aa9 -r 6417f5b59eff Beremiz_service.py --- a/Beremiz_service.py Wed Apr 11 10:53:48 2018 +0200 +++ b/Beremiz_service.py Wed Apr 18 10:40:16 2018 +0200 @@ -620,10 +620,9 @@ try: _wampconf = WC.LoadWampClientConf(wampconf) if _wampconf: - if _wampconf["url"]: # TODO : test more ? + WC.SetServer(pyroserver) + if _wampconf.get("url", None): # TODO : test more ? WC.RegisterWampClient(wampconf, wampsecret) - pyruntimevars["wampsession"] = WC.GetSession - WC.SetServer(pyroserver) else: raise Exception(_("WAMP config is incomplete.")) else: