More canonical overload of ReconnectingClientFactory (according twisted doc)
authorEdouard Tisserant
Tue, 09 Jan 2018 14:50:41 +0100
changeset 1891 66043243c246
parent 1890 916099cb8d22
child 1892 daf40a1e7607
More canonical overload of ReconnectingClientFactory (according twisted doc)
runtime/WampClient.py
--- a/runtime/WampClient.py	Tue Jan 09 14:42:23 2018 +0100
+++ b/runtime/WampClient.py	Tue Jan 09 14:50:41 2018 +0100
@@ -90,12 +90,12 @@
 
 class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
     def clientConnectionFailed(self, connector, reason):
-        self.retry(connector)
         print(_("WAMP Client connection failed .. retrying .."))
+        ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
 
     def clientConnectionLost(self, connector, reason):
-        self.retry(connector)
         print(_("WAMP Client connection lost .. retrying .."))
+        ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)
 
 
 def LoadWampClientConf(wampconf):