Increase frequency of status updates and longer availability threshold (#628)

* Increase frequency of status updates and longer avail. threshold.

* better fix.

* fix room close test failure due to slow peer connection Close

* Perform avg computation more frequently if data has changed
This commit is contained in:
David Zhao
2022-04-19 22:18:00 -07:00
committed by GitHub
parent 7a60278f64
commit 282e2aed49
6 changed files with 57 additions and 34 deletions
+7 -2
View File
@@ -624,8 +624,13 @@ func (p *ParticipantImpl) Close(sendLeave bool) error {
if onClose != nil {
onClose(p, disallowedSubscriptions)
}
p.publisher.Close()
p.subscriber.Close()
// Close peer connections without blocking participant close. If peer connections are gathering candidates
// Close will block.
go func() {
p.publisher.Close()
p.subscriber.Close()
}()
return nil
}