mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 12:52:09 +01:00
added more multi server stability
This commit is contained in:
@@ -59,7 +59,6 @@ function main() {
|
||||
console.log("Disconnected");
|
||||
clientList.clear();
|
||||
channelList.clear();
|
||||
console.log(clientList);
|
||||
drawClients();
|
||||
main(); // Reconnected
|
||||
};
|
||||
|
||||
@@ -29,6 +29,7 @@ function handleClientMoved(data) {
|
||||
data.payload.newChannelId
|
||||
);
|
||||
} else {
|
||||
console.log(data.payload);
|
||||
// New Client has to be created
|
||||
clientList.add(
|
||||
new Client(
|
||||
|
||||
@@ -2,8 +2,10 @@ function getClientsInChannel(channel) {
|
||||
let result = [];
|
||||
|
||||
clientList.items.forEach((e) => {
|
||||
if (e.channel.id == channel.id) {
|
||||
result.push(e);
|
||||
if (e.channel) {
|
||||
if (e.channel.id == channel.id) {
|
||||
result.push(e);
|
||||
}
|
||||
}
|
||||
});
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user