Don't mark client as online unless it's also enabled
This commit is contained in:
		
							parent
							
								
									30f0fe0a84
								
							
						
					
					
						commit
						b644818eef
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		|  | @ -91,11 +91,11 @@ class TempmonClient(Daemon): | ||||||
|             if client.enabled: |             if client.enabled: | ||||||
|                 for probe in client.enabled_probes(): |                 for probe in client.enabled_probes(): | ||||||
|                     self.take_reading(session, probe) |                     self.take_reading(session, probe) | ||||||
|             session.flush() |                 session.flush() | ||||||
| 
 | 
 | ||||||
|             # one more thing, make sure our client appears "online" |                 # one more thing, make sure our client appears "online" | ||||||
|             if not client.online: |                 if not client.online: | ||||||
|                 client.online = True |                     client.online = True | ||||||
| 
 | 
 | ||||||
|         except Exception as error: |         except Exception as error: | ||||||
|             log_error = True |             log_error = True | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Lance Edgar
						Lance Edgar