mirror of
https://github.com/livekit/livekit.git
synced 2026-04-01 00:05:40 +00:00
fix migration state (#520)
This commit is contained in:
@@ -571,6 +571,8 @@ func (p *ParticipantImpl) SetMigrateState(s types.MigrateState) {
|
||||
}
|
||||
pendingOffer = p.pendingOffer
|
||||
p.pendingOffer = nil
|
||||
// in case of migration, subscriber data channel will not fire OnOpen callback
|
||||
p.activeCounter.CAS(0, 2)
|
||||
}
|
||||
p.lock.Unlock()
|
||||
if s == types.MigrateStateComplete {
|
||||
|
||||
Reference in New Issue
Block a user