runtime/WampClient.py
branch#2486
changeset 2193 259df9ecf9ca
parent 1955 a1ea9856013a
child 2194 35d6b9321ffd
--- a/runtime/WampClient.py	Wed Feb 28 16:10:05 2018 +0100
+++ b/runtime/WampClient.py	Mon Mar 19 12:18:07 2018 +0100
@@ -109,6 +109,10 @@
 
 
 class ReconnectingWampWebSocketClientFactory(WampWebSocketClientFactory, ReconnectingClientFactory):
+    def buildProtocol(self, addr):
+        self.resetDelay()
+        return ReconnectingClientFactory.buildProtocol(self, addr)
+
     def clientConnectionFailed(self, connector, reason):
         print(_("WAMP Client connection failed (%s) .. retrying .." % time.ctime()))
         ReconnectingClientFactory.clientConnectionFailed(self, connector, reason)