Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

check error from read timeout

Gabe Kangas45baade8df67
diff --git a/core/rtmp/rtmp.go b/core/rtmp/rtmp.go
index 90f24f49a3..154c53720f 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