fix Peers.Count() using activePeers list, mark for delete on Close, and remove

maxedChan
This commit is contained in:
Serene Han 2016-06-11 23:18:38 -07:00
parent c63f5cfc0a
commit 2caa47988d
4 changed files with 94 additions and 66 deletions

View file

@ -18,9 +18,10 @@ type WebRTCDialer struct {
}
func NewWebRTCDialer(broker *BrokerChannel) *WebRTCDialer {
config := webrtc.NewConfiguration(iceServers...)
return &WebRTCDialer{
broker,
webrtc.NewConfiguration(iceServers...),
BrokerChannel: broker,
webrtcConfig: config,
}
}