This commit is contained in:
yumoqing 2024-10-11 11:34:05 +08:00
parent 39c37bdac1
commit b49f6300f7

View File

@ -74,9 +74,9 @@ bricks.Signaling = class {
if (data.session) { if (data.session) {
var sessionid = data.session.sessionid; var sessionid = data.session.sessionid;
var sessiontype = data.session.sessiontype; var sessiontype = data.session.sessiontype;
var handler = this.handlers.get(sessionid) var handler = this.handlers[sessionid]
if (!handler){ if (!handler){
var k = this.sessionhandlers.get(sessiontype); var k = this.sessionhandlers[sessiontype];
if (!k){ if (!k){
throw 'recvdata_handler() exception(' + sessiontype + ')'; throw 'recvdata_handler() exception(' + sessiontype + ')';
} }
@ -117,7 +117,7 @@ bricks.Signaling = class {
} }
} }
new_session(sessiontype, peer){ new_session(sessiontype, peer){
var k = this.sessionhandlers.get(sessiontype); var k = this.sessionhandlers[sessiontype];
if (!k){ if (!k){
throw 'new_session() exception(' + sessiontype + ')'; throw 'new_session() exception(' + sessiontype + ')';
} }