Bladeren bron

debug flag

Michelle Bu 12 jaren geleden
bovenliggende
commit
9dd07a16a3
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      lib/connection.js

+ 2 - 2
lib/connection.js

@@ -91,7 +91,7 @@ DataConnection.prototype._setupDataChannel = function() {
     this._dc = this._pc.createDataChannel(this.peer, { reliable: false });
     // Experimental reliable wrapper.
     if (this._options.reliable) {
-      this._reliable = new Reliable(this._dc);
+      this._reliable = new Reliable(this._dc, util.debug);
     }
     this._configureDataChannel();
   } else {
@@ -101,7 +101,7 @@ DataConnection.prototype._setupDataChannel = function() {
       self._dc = evt.channel;
       // Experimental reliable wrapper.
       if (self._options.reliable) {
-        self._reliable = new Reliable(self._dc);
+        self._reliable = new Reliable(self._dc, util.debug);
       }
       self._configureDataChannel();
     };