Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sweng-group-15
liowebrtc
Commits
85e37cc8
Commit
85e37cc8
authored
Dec 28, 2018
by
lazorfuzz
Browse files
Fix channelOpen event firing twice
parent
a36088bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/peer.js
View file @
85e37cc8
...
...
@@ -179,7 +179,7 @@ class Peer extends WildEmitter {
if
(
channel
)
return
channel
;
// if we don't have one by this label, create it
channel
=
this
.
channels
[
name
]
=
this
.
pc
.
createDataChannel
(
name
,
opts
);
this
.
_observeDataChannel
(
channel
,
this
);
//
this._observeDataChannel(channel, this);
return
channel
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment