rename log and comment (#601)
This commit is contained in:
@@ -241,8 +241,6 @@ func NewParticipant(params ParticipantParams) (*ParticipantImpl, error) {
|
|||||||
func (p *ParticipantImpl) createDataChannelForSubscriberAsPrimary() error {
|
func (p *ParticipantImpl) createDataChannelForSubscriberAsPrimary() error {
|
||||||
primaryPC := p.subscriber.pc
|
primaryPC := p.subscriber.pc
|
||||||
ordered := true
|
ordered := true
|
||||||
// also create data channels for subs, this is for legacy clients that do not use subscriber
|
|
||||||
// as primary channel
|
|
||||||
var (
|
var (
|
||||||
reliableID, lossyID uint16
|
reliableID, lossyID uint16
|
||||||
reliableIDPtr, lossyIDPtr *uint16
|
reliableIDPtr, lossyIDPtr *uint16
|
||||||
|
|||||||
+1
-1
@@ -334,7 +334,7 @@ func (r *Room) RemoveParticipant(identity livekit.ParticipantIdentity) {
|
|||||||
p.OnDataPacket(nil)
|
p.OnDataPacket(nil)
|
||||||
|
|
||||||
// close participant as well
|
// close participant as well
|
||||||
r.Logger.Infow("closing participant for removal", "participantID", p.ID())
|
r.Logger.Infow("closing participant for removal", "pID", p.ID(), "participant", p.Identity())
|
||||||
_ = p.Close(true)
|
_ = p.Close(true)
|
||||||
|
|
||||||
r.lock.RLock()
|
r.lock.RLock()
|
||||||
|
|||||||
Reference in New Issue
Block a user