From e60c1c147bf4b4e83b44a2311e38cf0ec99ed590 Mon Sep 17 00:00:00 2001 From: Ingo Oppermann Date: Tue, 17 Jun 2025 17:19:21 +0200 Subject: [PATCH] Fix closing connection when shutting down server --- rtmp/rtmp.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index bdd24b5f..9b21e4da 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -86,6 +86,8 @@ func (c *client) ticker(ctx context.Context) { func (c *client) Close() { c.cancel() + + c.conn.Close() } // channel represents a stream that is sent to the server