Removed nonsense code, that I should have check more in details before merging m(
authorEdouard Tisserant
Wed, 19 Dec 2018 10:48:53 +0100
changeset 2473 1d64d283d0bd
parent 2472 897687a3c982
child 2474 347b03f7e0e8
Removed nonsense code, that I should have check more in details before merging m(
runtime/WampClient.py
--- a/runtime/WampClient.py	Tue Dec 18 14:12:16 2018 +0100
+++ b/runtime/WampClient.py	Wed Dec 19 10:48:53 2018 +0100
@@ -173,22 +173,16 @@
         return ReconnectingClientFactory.buildProtocol(self, addr)
 
     def clientConnectionFailed(self, connector, reason):
-        if self.continueTrying:
-            print(_("WAMP Client connection failed (%s) .. retrying ..") %
-                  time.ctime())
-            super(ReconnectingWampWebSocketClientFactory,
-                  self).clientConnectionFailed(connector, reason)
-        else:
-            del connector
+        print(_("WAMP Client connection failed (%s) .. retrying ..") %
+              time.ctime())
+        super(ReconnectingWampWebSocketClientFactory,
+              self).clientConnectionFailed(connector, reason)
 
     def clientConnectionLost(self, connector, reason):
-        if self.continueTrying:
-            print(_("WAMP Client connection lost (%s) .. retrying ..") %
-                  time.ctime())
-            super(ReconnectingWampWebSocketClientFactory,
-                  self).clientConnectionFailed(connector, reason)
-        else:
-            del connector
+        print(_("WAMP Client connection lost (%s) .. retrying ..") %
+              time.ctime())
+        super(ReconnectingWampWebSocketClientFactory,
+              self).clientConnectionFailed(connector, reason)
 
 
 def CheckConfiguration(WampClientConf):