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

Commitaa760cb

Browse files
authored
Merge branch 'main' into provisionerdaemon
2 parents8282393 +35dd208 commitaa760cb

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(chanstruct{}),
7070
closedRTC:make(chanstruct{}),
7171
closedICE:make(chanstruct{}),
@@ -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-
offerrerbool
106+
offererbool
107107

108108
closedchanstruct{}
109109
closedRTCchanstruct{}
@@ -277,7 +277,7 @@ func (c *Conn) negotiate() {
277277
c.hasNegotiated=true
278278
deferc.negotiateMutex.Unlock()
279279

280-
ifc.offerrer {
280+
ifc.offerer {
281281
offer,err:=c.rtc.CreateOffer(&webrtc.OfferOptions{})
282282
iferr!=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
iferr!=nil {
322322
_=c.CloseWithError(xerrors.Errorf("create answer: %w",err))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp