@@ -65,7 +65,7 @@ func newWithClientOrServer(servers []webrtc.ICEServer, client bool, opts *ConnOp
65
65
pingEchoChannelID :2 ,
66
66
opts :opts ,
67
67
rtc :rtc ,
68
- offerrer : client ,
68
+ offerer : client ,
69
69
closed :make (chan struct {}),
70
70
closedRTC :make (chan struct {}),
71
71
closedICE :make (chan struct {}),
@@ -103,7 +103,7 @@ type Conn struct {
103
103
rtc * webrtc.PeerConnection
104
104
opts * ConnOptions
105
105
// Determines whether this connection will send the offer or the answer.
106
- offerrer bool
106
+ offerer bool
107
107
108
108
closed chan struct {}
109
109
closedRTC chan struct {}
@@ -277,7 +277,7 @@ func (c *Conn) negotiate() {
277
277
c .hasNegotiated = true
278
278
defer c .negotiateMutex .Unlock ()
279
279
280
- if c .offerrer {
280
+ if c .offerer {
281
281
offer ,err := c .rtc .CreateOffer (& webrtc.OfferOptions {})
282
282
if err != nil {
283
283
_ = c .CloseWithError (xerrors .Errorf ("create offer: %w" ,err ))
@@ -316,7 +316,7 @@ func (c *Conn) negotiate() {
316
316
return
317
317
}
318
318
319
- if ! c .offerrer {
319
+ if ! c .offerer {
320
320
answer ,err := c .rtc .CreateAnswer (& webrtc.AnswerOptions {})
321
321
if err != nil {
322
322
_ = c .CloseWithError (xerrors .Errorf ("create answer: %w" ,err ))