mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-25 04:22:00 -08:00
add program.close()
This commit is contained in:
parent
b0ac164530
commit
e6314ff45d
1 changed files with 6 additions and 0 deletions
6
main.go
6
main.go
|
|
@ -154,6 +154,12 @@ func newProgram(args args) (*program, error) {
|
|||
return p, nil
|
||||
}
|
||||
|
||||
func (p *program) close() {
|
||||
p.tcpl.close()
|
||||
p.udplRtcp.close()
|
||||
p.udplRtp.close()
|
||||
}
|
||||
|
||||
func main() {
|
||||
kingpin.CommandLine.Help = "rtsp-simple-server " + Version + "\n\n" +
|
||||
"RTSP server."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue