Update app.py
This commit is contained in:
		
							parent
							
								
									84c5edf5a0
								
							
						
					
					
						commit
						7d2cf464b1
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		
							
								
								
									
										2
									
								
								app.py
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								app.py
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -108,7 +108,7 @@ async def detect(websocket: WebSocket):
 | 
			
		|||
                        cap.release()
 | 
			
		||||
                        time.sleep(reconnect_interval)
 | 
			
		||||
                        retries += 1
 | 
			
		||||
                        if retries > max_retries:
 | 
			
		||||
                        if retries > max_retries and max_retries != -1:
 | 
			
		||||
                            logging.error(f"Max retries reached for camera: {camera_id}")
 | 
			
		||||
                            break
 | 
			
		||||
                        # Re-open the VideoCapture
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue