Commit 52d880af authored by lazorfuzz's avatar lazorfuzz
Browse files

Fix receivedPeerData not firing

parent 6ecea265
...@@ -179,7 +179,7 @@ class Peer extends WildEmitter { ...@@ -179,7 +179,7 @@ class Peer extends WildEmitter {
if (channel) return channel; if (channel) return channel;
// if we don't have one by this label, create it // if we don't have one by this label, create it
channel = this.channels[name] = this.pc.createDataChannel(name, opts); channel = this.channels[name] = this.pc.createDataChannel(name, opts);
// this._observeDataChannel(channel, this); this._observeDataChannel(channel, this);
return channel; return channel;
} }
...@@ -260,7 +260,7 @@ class Peer extends WildEmitter { ...@@ -260,7 +260,7 @@ class Peer extends WildEmitter {
handleDataChannelAdded(channel) { handleDataChannelAdded(channel) {
this.channels[channel.label] = channel; this.channels[channel.label] = channel;
this._observeDataChannel(channel, this); //this._observeDataChannel(channel, this);
} }
sendFile(file) { sendFile(file) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment