From 10089f4f25081adf82f0482eb5fabd9a2e4e1534 Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Thu, 17 Aug 2023 14:58:07 +0500 Subject: [PATCH] add server publish checking --- rtmp/server.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rtmp/server.go b/rtmp/server.go index 94e9994..89df686 100644 --- a/rtmp/server.go +++ b/rtmp/server.go @@ -49,5 +49,8 @@ func handle_conn(conn net.Conn, stream_live *bool) { if !CreateStream(chunk_wrapper) { return } + if !PublishAsKey(chunk_wrapper) { + return + } *stream_live = false }