|
@@ -35,17 +35,19 @@ export default class IceFailedNotification {
|
35
|
35
|
return;
|
36
|
36
|
}
|
37
|
37
|
|
38
|
|
- if (this._conference.isJvbConnectionInterrupted) {
|
|
38
|
+ const jvbConnection = this._conference.jvbJingleSession;
|
|
39
|
+ const jvbConnIceState = jvbConnection && jvbConnection.getIceConnectionState();
|
|
40
|
+
|
|
41
|
+ if (!jvbConnection) {
|
|
42
|
+ logger.warn('Not sending ICE failed - no JVB connection');
|
|
43
|
+ } else if (jvbConnIceState === 'connected') {
|
|
44
|
+ logger.info('ICE connection restored - not sending ICE failed');
|
|
45
|
+ } else {
|
39
|
46
|
this._iceFailedTimeout = window.setTimeout(() => {
|
40
|
|
- logger.info(
|
41
|
|
- 'Sending ICE failed'
|
42
|
|
- + ' - the connection has not recovered');
|
|
47
|
+ logger.info(`Sending ICE failed - the connection has not recovered: ${jvbConnIceState}`);
|
43
|
48
|
this._iceFailedTimeout = undefined;
|
44
|
49
|
session.sendIceFailedNotification();
|
45
|
50
|
}, 2000);
|
46
|
|
- } else {
|
47
|
|
- logger.info(
|
48
|
|
- 'ICE connection restored - not sending ICE failed');
|
49
|
51
|
}
|
50
|
52
|
},
|
51
|
53
|
error => {
|