From eef21cc2b564d3eb01b35932a5efb8c5f249c631 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 19 Jun 2021 16:03:53 +0200 Subject: [PATCH] server: fix bug that prevents clients from receiving with multicast after all previous clients have disconnected --- serverstream.go | 1 + 1 file changed, 1 insertion(+) diff --git a/serverstream.go b/serverstream.go index ac25e8fc..073a0c1b 100644 --- a/serverstream.go +++ b/serverstream.go @@ -148,6 +148,7 @@ func (st *ServerStream) readerRemove(ss *ServerSession) { l.rtpListener.close() l.rtcpListener.close() } + st.multicastListeners = nil } }