Fix announce after network blip

This commit is contained in:
Ian Gulliver
2020-11-25 20:52:04 +00:00
parent 6c4ec676fe
commit f142f4689b
2 changed files with 14 additions and 8 deletions

View File

@@ -52,6 +52,9 @@ function announce(roomId, clientId, adminSecret, name) {
})
.then(() => {
setTimeout(() => announce(roomId, clientId, adminSecret, name), 5000);
})
.catch(() => {
setTimeout(() => announce(roomId, clientId, adminSecret, name), 5000);
});
}
function watch(roomId, clientId, adminSecret, prnt) {