This commit is contained in:
2024-02-28 18:55:41 +08:00
parent da23cdf3e3
commit f6befeeca7
2 changed files with 2 additions and 0 deletions

View File

@@ -86,6 +86,7 @@ export const useWebFetcher = defineStore('WebFetcher', () => {
result = await connectDanmakuClient() result = await connectDanmakuClient()
} }
isStarted.value = true isStarted.value = true
disconnectedByServer = false
}) })
connection.onclose(reconnect) connection.onclose(reconnect)

View File

@@ -14,6 +14,7 @@ onMounted(async () => {
if (webFetcher.isStarted) { if (webFetcher.isStarted) {
return return
} }
webFetcher.Stop() webFetcher.Stop()
webFetcher.Start() webFetcher.Start()
}, 20000) }, 20000)