Revert "fix(web): abort reset"

This reverts commit 8cab49c2b1.
This commit is contained in:
zhaoying
2026-04-21 15:08:15 +08:00
parent 8cab49c2b1
commit 1a826c0026

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-02-03 16:27:39 * @Date: 2026-02-03 16:27:39
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-04-21 15:06:40 * @Last Modified time: 2026-04-10 18:51:43
*/ */
/** /**
* Chat debugging component for application testing * Chat debugging component for application testing
@@ -79,6 +79,8 @@ const Chat: FC<ChatProps> = ({
setCompareLoading(false) setCompareLoading(false)
setLoading(false) setLoading(false)
return () => { return () => {
abortRef.current?.()
abortRef.current = null
audioPollingRef.current.forEach(timer => clearInterval(timer)) audioPollingRef.current.forEach(timer => clearInterval(timer))
audioPollingRef.current.clear() audioPollingRef.current.clear()
} }