提交 78b0ac32 编写于 作者: D Daniel Rhodes

ConnectionMonitor is once again notified of disconnect

上级 2c53e279
......@@ -101,4 +101,5 @@ class ActionCable.Connection
disconnect: ->
return if @disconnected
@disconnected = true
@consumer.connectionMonitor.disconnected()
@consumer.subscriptions.notifyAll("disconnected")
......@@ -18,6 +18,7 @@ class ActionCable.ConnectionMonitor
disconnected: ->
@disconnectedAt = now()
ActionCable.log("ConnectionMonitor disconnected")
ping: ->
@pingedAt = now()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册