diff --git a/core/rtmp/rtmp.go b/core/rtmp/rtmp.go index 90f24f49a..154c53720 100644 --- a/core/rtmp/rtmp.go +++ b/core/rtmp/rtmp.go @@ -115,7 +115,9 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { } // If we don't get a readable packet in 10 seconds give up and disconnect - _rtmpConnection.SetReadDeadline(time.Now().Add(10 * time.Second)) + if err := _rtmpConnection.SetReadDeadline(time.Now().Add(10 * time.Second)); err != nil { + log.Warnln(err) + } pkt, err := c.ReadPacket() // Broadcaster disconnected