Beremiz_service.py
branch#2486
changeset 2200 6417f5b59eff
parent 1955 a1ea9856013a
child 2202 237c1a2de1c8
--- 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: