diff --git a/EonaCat.DnsTester/MainForm.cs b/EonaCat.DnsTester/MainForm.cs index ff580ab..0f65290 100644 --- a/EonaCat.DnsTester/MainForm.cs +++ b/EonaCat.DnsTester/MainForm.cs @@ -86,13 +86,9 @@ namespace EonaCat.DnsTester return; } - Task.Run(() => - { - IsRunning = true; - CheckDNS(CleanNames, CleanNamesCount, DNS1, DNS2); - IsRunning = false; - }); - + IsRunning = true; + CheckDNS(CleanNames, CleanNamesCount, DNS1, DNS2); + IsRunning = false; }