runtime/WampClient.py
branch#2486
changeset 2197 bec80ff35282
parent 2196 9017e830ae70
child 2198 4a5ac299f550
--- a/runtime/WampClient.py	Tue Apr 10 09:54:22 2018 +0200
+++ b/runtime/WampClient.py	Tue Apr 10 10:44:46 2018 +0200
@@ -101,17 +101,16 @@
         global _WampSession
         _WampSession = self
         ID = self.config.extra["ID"]
-        regoption = None
 
         registerOptions = self.config.extra.get('registerOptions', None)
         arguments = inspect.getargspec(types.RegisterOptions.__init__).args
         validRegisterOptions = getValidOptins(registerOptions, arguments)
         if validRegisterOptions:
-            regoption = types.RegisterOptions(**validRegisterOptions)
+            registerOptions = types.RegisterOptions(**validRegisterOptions)
             #print(_("Added custom register options"))
 
         for name in ExposedCalls:
-            yield self.register(GetCallee(name), u'.'.join((ID, name)), regoption)
+            yield self.register(GetCallee(name), u'.'.join((ID, name)), registerOptions)
 
         for name in SubscribedEvents:
             yield self.subscribe(GetCallee(name), unicode(name))