From 1acb6f9f6b80b04e9826f143e89290d38ce5bc63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A7=89?= Date: Sat, 30 Sep 2023 23:27:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E5=8A=A8=E5=85=B3=E9=97=AD=E4=BF=A1?= =?UTF-8?q?=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/index.html b/public/index.html index 9b60a47..978f945 100644 --- a/public/index.html +++ b/public/index.html @@ -51,6 +51,7 @@ if (buffer.byteLength >= item.size) { console.log('音乐数据接收完毕') item.arrayBuffer = buffer + event.target.close() // 关闭信道 resolve() } } @@ -132,6 +133,7 @@ } await sendChunk(ch, item.arrayBuffer) console.log(`发送 ${channel} 信道数据结束`) + ch.close() // 关闭信道 } }) return