|
@@ -1083,8 +1083,10 @@ function setupListeners(conference) {
|
1083
|
1083
|
conference.room.addListener(XMPPEvents.CONNECTION_RESTORED, function () {
|
1084
|
1084
|
conference.eventEmitter.emit(JitsiConferenceEvents.CONNECTION_RESTORED);
|
1085
|
1085
|
});
|
1086
|
|
- conference.room.addListener(XMPPEvents.CONFERENCE_SETUP_FAILED, function () {
|
1087
|
|
- conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_FAILED, JitsiConferenceErrors.SETUP_FAILED);
|
|
1086
|
+ conference.room.addListener(XMPPEvents.CONFERENCE_SETUP_FAILED,
|
|
1087
|
+ function (error) {
|
|
1088
|
+ conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_FAILED,
|
|
1089
|
+ JitsiConferenceErrors.SETUP_FAILED, error);
|
1088
|
1090
|
});
|
1089
|
1091
|
|
1090
|
1092
|
conference.room.addListener(AuthenticationEvents.IDENTITY_UPDATED, function (authEnabled, authIdentity) {
|
|
@@ -1296,7 +1298,8 @@ function setupListeners(conference) {
|
1296
|
1298
|
function (pc) {
|
1297
|
1299
|
conference.statistics.sendIceConnectionFailedEvent(pc);
|
1298
|
1300
|
conference.room.eventEmitter.emit(
|
1299
|
|
- XMPPEvents.CONFERENCE_SETUP_FAILED);
|
|
1301
|
+ XMPPEvents.CONFERENCE_SETUP_FAILED,
|
|
1302
|
+ new Error("ICE fail"));
|
1300
|
1303
|
});
|
1301
|
1304
|
|
1302
|
1305
|
conference.rtc.addListener(RTCEvents.TRACK_ATTACHED,
|