Fixed a small crash
This commit is contained in:
parent
c1a683e505
commit
426b328804
3 changed files with 4 additions and 3 deletions
|
@ -102,8 +102,9 @@ namespace connection {
|
||||||
connection_state = ConnectionState.CONNECTING;
|
connection_state = ConnectionState.CONNECTING;
|
||||||
|
|
||||||
connection = new WebSocket('wss://web-stats.teaspeak.de:27790');
|
connection = new WebSocket('wss://web-stats.teaspeak.de:27790');
|
||||||
if(!connection)
|
if(!connection) {
|
||||||
connection = new WebSocket('wss://localhost:27788');
|
connection = new WebSocket('wss://localhost:27788');
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
const connection_copy = connection;
|
const connection_copy = connection;
|
||||||
|
|
|
@ -92,7 +92,7 @@ export class ChannelDescriptionController {
|
||||||
this.cachedDescriptionStatus = {
|
this.cachedDescriptionStatus = {
|
||||||
status: "success",
|
status: "success",
|
||||||
description: description,
|
description: description,
|
||||||
handlerId: this.currentChannel.channelTree.client.handlerId
|
handlerId: this.currentChannel?.channelTree.client.handlerId || "unknown"
|
||||||
};
|
};
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
if(error instanceof CommandResult) {
|
if(error instanceof CommandResult) {
|
||||||
|
|
|
@ -653,5 +653,5 @@ export const ChannelVideoRenderer = (props: { handlerId: string, events: Registr
|
||||||
</div>
|
</div>
|
||||||
</HandlerIdContext.Provider>
|
</HandlerIdContext.Provider>
|
||||||
</EventContext.Provider>
|
</EventContext.Provider>
|
||||||
)
|
);
|
||||||
};
|
};
|
Loading…
Add table
Reference in a new issue