Browse Source

Stop handleDisconnect from double firing

pull/328/head
Gabe Kangas 5 years ago
parent
commit
723a671f1c
  1. 4
      core/rtmp/rtmp.go

4
core/rtmp/rtmp.go

@ -123,6 +123,10 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { @@ -123,6 +123,10 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) {
}
func handleDisconnect(conn net.Conn) {
if !_hasInboundRTMPConnection {
return
}
log.Infoln("RTMP disconnected.")
conn.Close()
_pipe.Close()

Loading…
Cancel
Save