Fix sending log messages across invalid link (#639)

This commit is contained in:
Cooldude2606 authored and GitHub committed 2024-06-08 13:52:29 +01:00
1 parent 2c2521a688
commit dbc79779ea
2 files changed
+22 -1

No files matched your search

+3 -1
View File
@@ -207,7 +207,9 @@ export class LinkTransport extends Transport {
}
try {
this.link.send(new libData.LogMessageEvent(info));
if (this.link.connector.valid) {
this.link.send(new libData.LogMessageEvent(info));
}
} catch (err) {
// Ignore session lost errors.
if (!(err instanceof libErrors.SessionLost)) {