Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa760cb

Browse files
authored
Merge branch 'main' into provisionerdaemon
2 parents 8282393 + 35dd208 commit aa760cb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

peer/conn.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func newWithClientOrServer(servers []webrtc.ICEServer, client bool, opts *ConnOp
6565
pingEchoChannelID: 2,
6666
opts: opts,
6767
rtc: rtc,
68-
offerrer: client,
68+
offerer: client,
6969
closed: make(chan struct{}),
7070
closedRTC: make(chan struct{}),
7171
closedICE: make(chan struct{}),
@@ -103,7 +103,7 @@ type Conn struct {
103103
rtc *webrtc.PeerConnection
104104
opts *ConnOptions
105105
// Determines whether this connection will send the offer or the answer.
106-
offerrer bool
106+
offerer bool
107107

108108
closed chan struct{}
109109
closedRTC chan struct{}
@@ -277,7 +277,7 @@ func (c *Conn) negotiate() {
277277
c.hasNegotiated = true
278278
defer c.negotiateMutex.Unlock()
279279

280-
if c.offerrer {
280+
if c.offerer {
281281
offer, err := c.rtc.CreateOffer(&webrtc.OfferOptions{})
282282
if err != nil {
283283
_ = c.CloseWithError(xerrors.Errorf("create offer: %w", err))
@@ -316,7 +316,7 @@ func (c *Conn) negotiate() {
316316
return
317317
}
318318

319-
if !c.offerrer {
319+
if !c.offerer {
320320
answer, err := c.rtc.CreateAnswer(&webrtc.AnswerOptions{})
321321
if err != nil {
322322
_ = c.CloseWithError(xerrors.Errorf("create answer: %w", err))

0 commit comments

Comments
 (0)