|
@ -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); |
|
|
} |
|
|
} |
|
|