mirror of
https://github.com/owncast/owncast.git
synced 2025-11-01 10:55:57 +08:00
Stop handleDisconnect from double firing
This commit is contained in:
@ -123,6 +123,10 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func handleDisconnect(conn net.Conn) {
|
func handleDisconnect(conn net.Conn) {
|
||||||
|
if !_hasInboundRTMPConnection {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
log.Infoln("RTMP disconnected.")
|
log.Infoln("RTMP disconnected.")
|
||||||
conn.Close()
|
conn.Close()
|
||||||
_pipe.Close()
|
_pipe.Close()
|
||||||
|
|||||||
Reference in New Issue
Block a user