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