mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
detect when the connection with the server is closed when publishing with udp (#6)
This commit is contained in:
@@ -62,4 +62,8 @@ func main() {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
// wait until the connection is closed
|
||||
err = conn.LoopUDP()
|
||||
fmt.Println("connection is closed (%s)", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user