Commit 85e37cc8 authored by lazorfuzz's avatar lazorfuzz
Browse files

Fix channelOpen event firing twice

parent a36088bb
...@@ -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;
} }
......
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