mirror of
				https://github.com/powerline/powerline.git
				synced 2025-10-31 11:34:53 +01:00 
			
		
		
		
	Fix problem with updating value: it was not updated in a thread
This commit is contained in:
		
							parent
							
								
									655549440b
								
							
						
					
					
						commit
						34c775f628
					
				| @ -63,7 +63,7 @@ class ThreadedSegment(object): | ||||
| 		while not self.shutdown_event.is_set(): | ||||
| 			start_time = monotonic() | ||||
| 			try: | ||||
| 				self.update(self.update_value) | ||||
| 				self.update_value = self.update(self.update_value) | ||||
| 			except Exception as e: | ||||
| 				self.error('Exception while updating: {0}', str(e)) | ||||
| 				self.skip = True | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user