runtime/WampClient.py
changeset 2474 347b03f7e0e8
parent 2473 1d64d283d0bd
child 2487 6a4f9a061994
equal deleted inserted replaced
2473:1d64d283d0bd 2474:347b03f7e0e8
   224 
   224 
   225     lastKnownConfig = WampClientConf.copy()
   225     lastKnownConfig = WampClientConf.copy()
   226 
   226 
   227     with open(os.path.realpath(_WampConf), 'w') as f:
   227     with open(os.path.realpath(_WampConf), 'w') as f:
   228         json.dump(WampClientConf, f, sort_keys=True, indent=4)
   228         json.dump(WampClientConf, f, sort_keys=True, indent=4)
       
   229     StopReconnectWampClient()
   229     if 'active' in WampClientConf and WampClientConf['active']:
   230     if 'active' in WampClientConf and WampClientConf['active']:
   230         if _transportFactory and _WampSession:
       
   231             StopReconnectWampClient()
       
   232         StartReconnectWampClient()
   231         StartReconnectWampClient()
   233     else:
       
   234         StopReconnectWampClient()
       
   235 
   232 
   236     return WampClientConf
   233     return WampClientConf
   237 
   234 
   238 
   235 
   239 def LoadWampSecret(secretfname):
   236 def LoadWampSecret(secretfname):