Skip to content

Commit

Permalink
fix(sfu): Failed to load onICEConnectionStateChangeHandler (#361)
Browse files Browse the repository at this point in the history
  • Loading branch information
cgojin authored Jan 5, 2021
1 parent 86aaafb commit 7098465
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sfu/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ func NewPublisher(session *Session, id string, cfg WebRTCTransportConfig) (*Publ
p.Close()
}

if handler, ok := p.onICEConnectionStateChangeHandler.Load().(func()); ok && handler != nil {
handler()
if handler, ok := p.onICEConnectionStateChangeHandler.Load().(func(webrtc.ICEConnectionState)); ok && handler != nil {
handler(connectionState)
}
})

Expand Down

0 comments on commit 7098465

Please sign in to comment.