mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Disconnect on BOUNCER BIND error
This commit is contained in:
parent
11642e1ab4
commit
5165df718f
1 changed files with 8 additions and 0 deletions
|
@ -235,6 +235,14 @@ export default class Client extends EventTarget {
|
|||
this.disconnect();
|
||||
}
|
||||
break;
|
||||
case "FAIL":
|
||||
if (msg.params[0] === "BOUNCER" && msg.params[2] === "BIND") {
|
||||
this.dispatchEvent(new CustomEvent("error", {
|
||||
detail: "Failed to bind to bouncer network: " + msg.params[3],
|
||||
}));
|
||||
this.disconnect();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
this.dispatchEvent(new CustomEvent("message", {
|
||||
|
|
Loading…
Reference in a new issue