mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 07:37:07 +08:00
server: fix panic during session closure (#671)
This commit is contained in:
@@ -27,12 +27,11 @@ func (w *asyncProcessor) start() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *asyncProcessor) stop() {
|
func (w *asyncProcessor) stop() {
|
||||||
if !w.running {
|
if w.running {
|
||||||
panic("should not happen")
|
w.buffer.Close()
|
||||||
|
<-w.chError
|
||||||
|
w.running = false
|
||||||
}
|
}
|
||||||
w.buffer.Close()
|
|
||||||
<-w.chError
|
|
||||||
w.running = false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *asyncProcessor) run() {
|
func (w *asyncProcessor) run() {
|
||||||
|
Reference in New Issue
Block a user