mirror of
				https://github.com/owncast/owncast.git
				synced 2025-10-31 10:08:10 +08:00 
			
		
		
		
	Connections from Restream seem to be more sensitive about if we get the initial packets processed or not, so I moved setStreamAsConnected to be decoupled from when we set broadcaster info. Another update for #432
This commit is contained in:
		| @ -70,7 +70,6 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { | ||||
| 		if t.Type == flvio.TAG_AMF0 { | ||||
| 			log.Tracef("%+v\n", t.DebugFields()) | ||||
| 			setCurrentBroadcasterInfo(t, nc.RemoteAddr().String()) | ||||
| 			_setStreamAsConnected() | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| @ -89,6 +88,7 @@ func HandleConn(c *rtmp.Conn, nc net.Conn) { | ||||
| 	} | ||||
|  | ||||
| 	log.Infoln("Incoming RTMP connected.") | ||||
| 	_setStreamAsConnected() | ||||
|  | ||||
| 	pipePath := utils.GetTemporaryPipePath() | ||||
| 	if !utils.DoesFileExists(pipePath) { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Gabe Kangas
					Gabe Kangas