Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent init new peer connection, in case of it already established #440

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Update webrtc_adaptor.test.js
mustafaboleken committed Jun 22, 2024
commit 39c56962ec268cff3b3ed32c3c6711201fb11bf4
2 changes: 2 additions & 0 deletions src/test/js/webrtc_adaptor.test.js
Original file line number Diff line number Diff line change
@@ -844,6 +844,8 @@ describe("WebRTCAdaptor", function () {

adaptor.startPublishing(streamId);

expect(Logger.debug.calledWithExactly("We already established peer connection, no need to create offer")).to.be.true;

expect(initPeerConnection.calledWithExactly(streamId, "publish")).to.be.false;
expect(createOfferFake.called).to.be.false;
});