mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 13:12:09 +00:00
fix migration state (#520)
This commit is contained in:
1 parent
f3368a567b
commit
82192f524e
1 file changed
+2
@@ -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