1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Add error handling to gotConnected.

This commit is contained in:
Juliusz Chroboczek 2021-10-29 23:37:59 +02:00
parent 8c21ede9d2
commit 06ee4cc30f

View file

@ -324,7 +324,13 @@ function setConnected(connected) {
function gotConnected() { function gotConnected() {
setConnected(true); setConnected(true);
let up = getUserPass(); let up = getUserPass();
try {
this.join(group, up.username, up.password); this.join(group, up.username, up.password);
} catch(e) {
console.error(e);
displayError(e);
serverConnection.close();
}
} }
/** /**