Browse Source

Do not load PingItems, threads have to user their own ctx anyway

master
amki 4 years ago
parent
commit
6d75e6a381
  1. 2
      ISPChk/NetworkTest.cs

2
ISPChk/NetworkTest.cs

@ -152,8 +152,6 @@ namespace ISPChk
public void AddHost(Host host) public void AddHost(Host host)
{ {
System.Diagnostics.Debug.WriteLine("Host added!"); 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) if(host.Ping)
StartPing(host); StartPing(host);
} }

Loading…
Cancel
Save