Fix an issue with the WebRTC service where it was impossible to join a channel once someone had left this channel

This commit is contained in:
Yann Flory
2016-03-14 14:49:19 +01:00
parent 06e5c84702
commit 77e7fb5724
4 changed files with 23 additions and 14 deletions

View File

@@ -49,7 +49,6 @@ var popPassword = function (msg) {
};
var sendMsg = function (msg, socket) {
console.log('>> '+msg);
socket.send(msg);
};
@@ -109,7 +108,6 @@ var dropClient = function (ctx, userpass) {
};
var handleMessage = function (ctx, socket, msg) {
console.log('<< '+msg);
var parsed = parseMessage(msg);
var userPass = parsed.user + ':' + parsed.pass;
msg = popPassword(msg);