mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +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() {
|
||||
if !w.running {
|
||||
panic("should not happen")
|
||||
if w.running {
|
||||
w.buffer.Close()
|
||||
<-w.chError
|
||||
w.running = false
|
||||
}
|
||||
w.buffer.Close()
|
||||
<-w.chError
|
||||
w.running = false
|
||||
}
|
||||
|
||||
func (w *asyncProcessor) run() {
|
||||
|
Reference in New Issue
Block a user