mirror of
https://github.com/ZHANGTIANYAO1/teamspeak-music-bot.git
synced 2026-10-02 04:52:50 +08:00
fix: address Phase 2 review — error handlers, drain queue, prevent listener accumulation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
a6bfd9d32c
commit
d66355a829
3 files changed
+39
-25
No files matched your search
@@ -62,12 +62,6 @@ export function decodeResponse(raw: string): Record<string, string>[] {
|
||||
});
|
||||
}
|
||||
|
||||
export interface TS3Response {
|
||||
errorId: number;
|
||||
errorMessage: string;
|
||||
data: Record<string, string>[];
|
||||
}
|
||||
|
||||
export function parseErrorLine(line: string): { id: number; msg: string } {
|
||||
const decoded = decodeResponse(line.replace(/^error\s+/, ""))[0];
|
||||
return {
|
||||
|
||||
Reference in new issue
Block a user