0

Log and abort when listening on RTMP port fails (#478)

Fixes #477.
This commit is contained in:
Christian Muehlhaeuser 2020-12-20 07:17:10 +01:00 committed by GitHub
parent 553992d6f8
commit c7cc973ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {