aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/assets/javascripts/cable.js.coffee3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/assets/javascripts/cable.js.coffee b/lib/assets/javascripts/cable.js.coffee
index 46cbf7bff0..345771dd1f 100644
--- a/lib/assets/javascripts/cable.js.coffee
+++ b/lib/assets/javascripts/cable.js.coffee
@@ -49,7 +49,6 @@ class @Cable
reconnect: =>
@removeExistingConnection()
- @clearPingWaitTimeout()
@resetPingTime()
@disconnected()
@@ -60,6 +59,8 @@ class @Cable
removeExistingConnection: =>
if @connection?
+ @clearPingWaitTimeout()
+
@connection.onclose = -> # no-op
@connection.onerror = -> # no-op
@connection.close()