mirror of
				https://github.com/AlexxIT/go2rtc.git
				synced 2025-10-31 03:36:30 +08:00 
			
		
		
		
	Stop WebRTC conn on AddConsumer error
This commit is contained in:
		| @@ -169,6 +169,7 @@ func ExchangeSDP( | ||||
| 	// 2. AddConsumer, so we get new tracks | ||||
| 	if err = stream.AddConsumer(conn); err != nil { | ||||
| 		log.Warn().Err(err).Msg("[api.webrtc] add consumer") | ||||
| 		_ = conn.Conn.Close() | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Alexey Khit
					Alexey Khit