mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
fix various race conditions
This commit is contained in:
@@ -235,6 +235,8 @@ func (sc *ServerConn) run() {
|
||||
}
|
||||
}()
|
||||
|
||||
sc.ctxCancel()
|
||||
|
||||
if sc.tcpFrameEnabled {
|
||||
sc.tcpFrameWriteBuffer.Close()
|
||||
<-sc.tcpFrameBackgroundWriteDone
|
||||
|
Reference in New Issue
Block a user