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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user