Fixed a small crash

canary
WolverinDEV 2020-12-21 17:51:51 +01:00
parent c1a683e505
commit 426b328804
3 changed files with 4 additions and 3 deletions

View File

@ -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;

View File

@ -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) {

View File

@ -653,5 +653,5 @@ export const ChannelVideoRenderer = (props: { handlerId: string, events: Registr
</div>
</HandlerIdContext.Provider>
</EventContext.Provider>
)
);
};