mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Improve restart timing (#10709)
This commit is contained in:
		
							parent
							
								
									d5989c91a8
								
							
						
					
					
						commit
						559e6910c4
					
				| @ -666,6 +666,11 @@ class FrigateApp: | |||||||
|         logger.info("Stopping...") |         logger.info("Stopping...") | ||||||
|         self.stop_event.set() |         self.stop_event.set() | ||||||
| 
 | 
 | ||||||
|  |         # Stop Communicators | ||||||
|  |         self.inter_process_communicator.stop() | ||||||
|  |         self.inter_config_updater.stop() | ||||||
|  |         self.inter_detection_proxy.stop() | ||||||
|  | 
 | ||||||
|         for detector in self.detectors.values(): |         for detector in self.detectors.values(): | ||||||
|             detector.stop() |             detector.stop() | ||||||
| 
 | 
 | ||||||
| @ -702,8 +707,3 @@ class FrigateApp: | |||||||
|                     queue.get_nowait() |                     queue.get_nowait() | ||||||
|                 queue.close() |                 queue.close() | ||||||
|                 queue.join_thread() |                 queue.join_thread() | ||||||
| 
 |  | ||||||
|         # Stop Communicators |  | ||||||
|         self.inter_process_communicator.stop() |  | ||||||
|         self.inter_config_updater.stop() |  | ||||||
|         self.inter_detection_proxy.stop() |  | ||||||
|  | |||||||
| @ -79,7 +79,7 @@ def output_frames( | |||||||
|     websocket_thread.start() |     websocket_thread.start() | ||||||
| 
 | 
 | ||||||
|     while not stop_event.is_set(): |     while not stop_event.is_set(): | ||||||
|         (topic, data) = detection_subscriber.get_data(timeout=10) |         (topic, data) = detection_subscriber.get_data(timeout=1) | ||||||
| 
 | 
 | ||||||
|         if not topic: |         if not topic: | ||||||
|             continue |             continue | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user