Do not load PingItems, threads have to user their own ctx anyway
This commit is contained in:
		
							parent
							
								
									bacef415fe
								
							
						
					
					
						commit
						6d75e6a381
					
				| @ -152,8 +152,6 @@ namespace ISPChk | ||||
|         public void AddHost(Host host) | ||||
|         { | ||||
|             System.Diagnostics.Debug.WriteLine("Host added!"); | ||||
|             if (host.PingItems == null) | ||||
|                 host = _context.Hosts.Include(host => host.PingItems).Where(h => h.HostId == host.HostId).Single(); | ||||
|             if(host.Ping) | ||||
|                 StartPing(host); | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user