From 6d75e6a381da5777a46c17e40f6e2f4d78e848a1 Mon Sep 17 00:00:00 2001 From: amki Date: Tue, 9 Feb 2021 02:14:51 +0100 Subject: [PATCH] Do not load PingItems, threads have to user their own ctx anyway --- ISPChk/NetworkTest.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/ISPChk/NetworkTest.cs b/ISPChk/NetworkTest.cs index ac0dc1b..69c2327 100644 --- a/ISPChk/NetworkTest.cs +++ b/ISPChk/NetworkTest.cs @@ -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); }