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