Commit 06ee4cc3 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Add error handling to gotConnected.

parent 8c21ede9
...@@ -324,7 +324,13 @@ function setConnected(connected) { ...@@ -324,7 +324,13 @@ function setConnected(connected) {
function gotConnected() { function gotConnected() {
setConnected(true); setConnected(true);
let up = getUserPass(); let up = getUserPass();
this.join(group, up.username, up.password); try {
this.join(group, up.username, up.password);
} catch(e) {
console.error(e);
displayError(e);
serverConnection.close();
}
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment