mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 12:02:50 +08:00
fix: explain TeamSpeak connection failures
This commit is contained in:
1 parent
06e5cc6d8b
commit
aef1f68875
9 files changed
+234
-24
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user