Browse Source

fix(JitsiConference): remove unused isModerator flag

master
paweldomas 5 years ago
parent
commit
ee453d9a03
1 changed files with 1 additions and 5 deletions
  1. 1
    5
      JitsiConference.js

+ 1
- 5
JitsiConference.js View File

@@ -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) {

Loading…
Cancel
Save