fix(voice): mark stream as ended

#10455 djs
This commit is contained in:
Elysia
2024-08-23 17:25:16 +07:00
parent dbd5e1ee34
commit 1782596fd9

View File

@@ -151,6 +151,10 @@ class PacketHandler extends EventEmitter {
} }
} }
stream.push(opusPacket); stream.push(opusPacket);
if (opusPacket === null) {
// ! null marks EOF for stream
stream.destroy();
}
} }
if (videoStreamInfo) { if (videoStreamInfo) {