From c7cc973ebcf80891834ea0dfa09a4bfe88095007 Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sun, 20 Dec 2020 07:17:10 +0100 Subject: [PATCH] Log and abort when listening on RTMP port fails (#478) Fixes #477. --- core/rtmp/rtmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/rtmp/rtmp.go b/core/rtmp/rtmp.go index a5eb68cb6..1b9275150 100644 --- a/core/rtmp/rtmp.go +++ b/core/rtmp/rtmp.go @@ -40,7 +40,7 @@ func Start(setStreamAsConnected func(), setBroadcaster func(models.Broadcaster)) var lis net.Listener var err error if lis, err = net.Listen("tcp", fmt.Sprintf(":%d", port)); err != nil { - return + log.Fatal(err) } s.LogEvent = func(c *rtmp.Conn, nc net.Conn, e int) {