mirror of
https://github.com/livekit/livekit.git
synced 2026-05-25 16:24:57 +00:00
Flush stats on close (#3713)
This commit is contained in:
@@ -374,6 +374,7 @@ func (cs *ConnectionStats) updateStatsWorker() {
|
||||
for {
|
||||
select {
|
||||
case <-cs.done.Watch():
|
||||
cs.getStat()
|
||||
return
|
||||
|
||||
case <-tk.C:
|
||||
|
||||
Reference in New Issue
Block a user