Start connection stats only after bind (#480)

This commit is contained in:
Raja Subramanian
2022-03-02 17:05:11 +05:30
committed by GitHub
parent bfae13eaa6
commit bfa350451e
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -268,7 +268,7 @@ func (b *Buffer) Close() error {
b.audioPool.Put(b.bucket.src)
}
b.closed.Store(true)
b.onClose()
b.callbacksQueue.Enqueue(b.onClose)
b.callbacksQueue.Stop()
})
return nil