|
|
@@ -2384,11 +2384,9 @@ JitsiConference.prototype.getMeetingUniqueId = function() {
|
|
2384
|
2384
|
* @public (FIXME how to make package local ?)
|
|
2385
|
2385
|
*/
|
|
2386
|
2386
|
JitsiConference.prototype.getActivePeerConnection = function() {
|
|
2387
|
|
- if (this.isP2PActive()) {
|
|
2388
|
|
- return this.p2pJingleSession.peerconnection;
|
|
2389
|
|
- }
|
|
|
2387
|
+ const session = this.isP2PActive() ? this.p2pJingleSession : this.jvbJingleSession;
|
|
2390
|
2388
|
|
|
2391
|
|
- return this.jvbJingleSession ? this.jvbJingleSession.peerconnection : null;
|
|
|
2389
|
+ return session ? session.peerconnection : null;
|
|
2392
|
2390
|
};
|
|
2393
|
2391
|
|
|
2394
|
2392
|
/**
|