Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Incorrect spelling of "offerer" in peer#154

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kylecarbs merged 1 commit intomainfromofferrer
Feb 3, 2022
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletionspeer/conn.go
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -65,7 +65,7 @@ func newWithClientOrServer(servers []webrtc.ICEServer, client bool, opts *ConnOp
pingEchoChannelID: 2,
opts: opts,
rtc: rtc,
offerrer: client,
offerer: client,
closed: make(chan struct{}),
closedRTC: make(chan struct{}),
closedICE: make(chan struct{}),
Expand DownExpand Up@@ -103,7 +103,7 @@ type Conn struct {
rtc *webrtc.PeerConnection
opts *ConnOptions
// Determines whether this connection will send the offer or the answer.
offerrer bool
offerer bool

closed chan struct{}
closedRTC chan struct{}
Expand DownExpand Up@@ -273,7 +273,7 @@ func (c *Conn) negotiate() {
c.hasNegotiated = true
defer c.negotiateMutex.Unlock()

if c.offerrer {
if c.offerer {
offer, err := c.rtc.CreateOffer(&webrtc.OfferOptions{})
if err != nil {
_ = c.CloseWithError(xerrors.Errorf("create offer: %w", err))
Expand DownExpand Up@@ -312,7 +312,7 @@ func (c *Conn) negotiate() {
return
}

if !c.offerrer {
if !c.offerer {
answer, err := c.rtc.CreateAnswer(&webrtc.AnswerOptions{})
if err != nil {
_ = c.CloseWithError(xerrors.Errorf("create answer: %w", err))
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp