mirror of
https://github.com/xfgryujk/blivechat.git
synced 2025-01-28 05:10:48 +08:00
回退项目心跳策略
This commit is contained in:
parent
3ee3d4335f
commit
f52a6f4ef9
@ -24,10 +24,6 @@ export default class ChatClientDirectOpenLive extends ChatClientOfficialBase {
|
|||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
if (this.gameHeartbeatTimerId) {
|
|
||||||
window.clearTimeout(this.gameHeartbeatTimerId)
|
|
||||||
this.gameHeartbeatTimerId = null
|
|
||||||
}
|
|
||||||
this.endGame()
|
this.endGame()
|
||||||
|
|
||||||
super.stop()
|
super.stop()
|
||||||
@ -52,6 +48,11 @@ export default class ChatClientDirectOpenLive extends ChatClientOfficialBase {
|
|||||||
content: '房间连接已断开'
|
content: '房间连接已断开'
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
if (this.gameHeartbeatTimerId) {
|
||||||
|
window.clearTimeout(this.gameHeartbeatTimerId)
|
||||||
|
this.gameHeartbeatTimerId = null
|
||||||
|
}
|
||||||
|
|
||||||
super.onWsClose()
|
super.onWsClose()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user