mirror of
https://github.com/aler9/gortsplib
synced 2025-10-04 06:46:42 +08:00
replace new() with initialize() (#490)
This commit is contained in:
@@ -20,15 +20,9 @@ type client struct {
|
||||
s *server
|
||||
}
|
||||
|
||||
func newClient(s *server) *client {
|
||||
c := &client{
|
||||
s: s,
|
||||
}
|
||||
|
||||
func (c *client) initialize() {
|
||||
// start a separated routine
|
||||
go c.run()
|
||||
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *client) run() {
|
||||
|
Reference in New Issue
Block a user