Skip to content

Commit

Permalink
standard
Browse files Browse the repository at this point in the history
  • Loading branch information
feross committed Aug 29, 2018
1 parent 7900405 commit 21d85de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/negotiation.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ test('add stream on non-initiator only', function (t) {
offerConstraints: {
offerToReceiveVideo: true,
offerToReceiveAudio: true
}})
} })
var peer2 = new Peer({ config: config,
wrtc: common.wrtc,
stream: common.getMediaStream(),
answerConstraints: {
offerToReceiveVideo: false,
offerToReceiveAudio: false
}})
} })

peer1.on('signal', function (data) { if (!peer2.destroyed) peer2.signal(data) })
peer2.on('signal', function (data) { if (!peer1.destroyed) peer1.signal(data) })
Expand Down

0 comments on commit 21d85de

Please sign in to comment.