Cancel SRT/RTMP session immediately on disconnect
This commit is contained in:
parent
477243a38e
commit
c7979efb07
@ -66,6 +66,7 @@ func (c *client) ticker(ctx context.Context) {
|
||||
func (c *client) Close() {
|
||||
c.cancel()
|
||||
c.conn.Close()
|
||||
c.collector.Close(c.id)
|
||||
}
|
||||
|
||||
// channel represents a stream that is sent to the server
|
||||
|
||||
@ -68,6 +68,7 @@ func (c *client) ticker(ctx context.Context) {
|
||||
func (c *client) Close() {
|
||||
c.cancel()
|
||||
c.conn.Close()
|
||||
c.collector.Close(c.id)
|
||||
}
|
||||
|
||||
// channel represents a stream that is sent to the server
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user