|
@@ -2940,17 +2940,13 @@ JitsiConference.prototype._maybeStartOrStopP2P = function(userLeftEvent) {
|
2940
|
2940
|
}
|
2941
|
2941
|
const peers = this.getParticipants();
|
2942
|
2942
|
const peerCount = peers.length;
|
2943
|
|
- const isModerator = this.isModerator();
|
2944
|
2943
|
const hasBotPeer
|
2945
|
2944
|
= peers.find(p => p._botType === 'poltergeist') !== undefined;
|
2946
|
2945
|
|
2947
|
2946
|
// FIXME 1 peer and it must *support* P2P switching
|
2948
|
2947
|
const shouldBeInP2P = peerCount === 1 && !hasBotPeer;
|
2949
|
2948
|
|
2950
|
|
- logger.debug(
|
2951
|
|
- `P2P? isModerator: ${isModerator}, peerCount: ${
|
2952
|
|
- peerCount}, hasBotPeer: ${hasBotPeer} => ${
|
2953
|
|
- shouldBeInP2P}`);
|
|
2949
|
+ logger.debug(`P2P? peerCount: ${peerCount}, hasBotPeer: ${hasBotPeer} => ${shouldBeInP2P}`);
|
2954
|
2950
|
|
2955
|
2951
|
// Clear deferred "start P2P" task
|
2956
|
2952
|
if (!shouldBeInP2P && this.deferredStartP2PTask) {
|