runtime/WampClient.py
changeset 2473 1d64d283d0bd
parent 2471 9d5c291b510f
child 2474 347b03f7e0e8
--- 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):