@@ -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 {}
@@ -273,7 +273,7 @@ func (c *Conn) negotiate() {
273
273
c .hasNegotiated = true
274
274
defer c .negotiateMutex .Unlock ()
275
275
276
- if c .offerrer {
276
+ if c .offerer {
277
277
offer ,err := c .rtc .CreateOffer (& webrtc.OfferOptions {})
278
278
if err != nil {
279
279
_ = c .CloseWithError (xerrors .Errorf ("create offer: %w" ,err ))
@@ -312,7 +312,7 @@ func (c *Conn) negotiate() {
312
312
return
313
313
}
314
314
315
- if ! c .offerrer {
315
+ if ! c .offerer {
316
316
answer ,err := c .rtc .CreateAnswer (& webrtc.AnswerOptions {})
317
317
if err != nil {
318
318
_ = c .CloseWithError (xerrors .Errorf ("create answer: %w" ,err ))