Fix some login race conditions/issues
This commit is contained in:
parent
c3035ca368
commit
574ef4435c
5 changed files with 93 additions and 59 deletions
|
|
@ -138,10 +138,7 @@ Callbacks = {
|
|||
var parent = chatDialog(div);
|
||||
parent.attr("id", "needpw");
|
||||
var sendpw = function () {
|
||||
socket.emit("joinChannel", {
|
||||
name: CHANNEL.name,
|
||||
pw: pwbox.val()
|
||||
});
|
||||
socket.emit("channelPassword", pwbox.val());
|
||||
parent.remove();
|
||||
};
|
||||
submit.click(sendpw);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue