fix: explain TeamSpeak connection failures

This commit is contained in:
illusia committed 2026-09-10 16:11:18 +08:00
1 parent 06e5cc6d8b
commit aef1f68875
9 files changed
+234 -24

No files matched your search

+3 -1
View File
@@ -487,7 +487,9 @@ export function readConnectionHistory(logFile: string | undefined, limit: number
: current.connectedAt
? Math.max(0, Math.floor((Date.parse(log.timestamp) - Date.parse(current.connectedAt)) / 1000))
: null;
current.reason = typeof log.raw.reason === "string" ? log.raw.reason : null;
current.reason = typeof log.raw.failureCode === "string"
? log.raw.failureCode
: typeof log.raw.reason === "string" ? log.raw.reason : null;
current.status = current.connectedAt ? "disconnected" : "failed";
}
records.set(entryId, current);