# HG changeset patch
# User Edouard Tisserant
# Date 1545213199 -3600
# Node ID 347b03f7e0e8e9fe948d367e1af744fc6166692d
# Parent  1d64d283d0bde998bf23b4af60ac1c6c3f0ea67d
Fixed runtime's reconnecting loop not stopping when re-configuring WAMP.
In case WAMP was already trying to connect without success and user change WAMP configuration through web interface, previous ReconnectingClient wasn't stopped.

diff -r 1d64d283d0bd -r 347b03f7e0e8 runtime/WampClient.py
--- a/runtime/WampClient.py	Wed Dec 19 10:48:53 2018 +0100
+++ b/runtime/WampClient.py	Wed Dec 19 10:53:19 2018 +0100
@@ -226,12 +226,9 @@
 
     with open(os.path.realpath(_WampConf), 'w') as f:
         json.dump(WampClientConf, f, sort_keys=True, indent=4)
+    StopReconnectWampClient()
     if 'active' in WampClientConf and WampClientConf['active']:
-        if _transportFactory and _WampSession:
-            StopReconnectWampClient()
         StartReconnectWampClient()
-    else:
-        StopReconnectWampClient()
 
     return WampClientConf