bugfix
This commit is contained in:
parent
39c37bdac1
commit
b49f6300f7
@ -74,9 +74,9 @@ bricks.Signaling = class {
|
||||
if (data.session) {
|
||||
var sessionid = data.session.sessionid;
|
||||
var sessiontype = data.session.sessiontype;
|
||||
var handler = this.handlers.get(sessionid)
|
||||
var handler = this.handlers[sessionid]
|
||||
if (!handler){
|
||||
var k = this.sessionhandlers.get(sessiontype);
|
||||
var k = this.sessionhandlers[sessiontype];
|
||||
if (!k){
|
||||
throw 'recvdata_handler() exception(' + sessiontype + ')';
|
||||
}
|
||||
@ -117,7 +117,7 @@ bricks.Signaling = class {
|
||||
}
|
||||
}
|
||||
new_session(sessiontype, peer){
|
||||
var k = this.sessionhandlers.get(sessiontype);
|
||||
var k = this.sessionhandlers[sessiontype];
|
||||
if (!k){
|
||||
throw 'new_session() exception(' + sessiontype + ')';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user