Skip to content

Commit

Permalink
Fixed Connect All Button
Browse files Browse the repository at this point in the history
  • Loading branch information
msasanmh committed May 4, 2023
1 parent da29844 commit 0252d19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SecureDNSClient/Forms/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1892,7 +1892,7 @@ async Task connectAll()
CustomButtonConnect_Click(null, null);
Task taskWait2 = await Task.Run(async () =>
{
while (!IsConnected)
while (!IsDNSConnected && !IsDoHConnected)
{
if (NumberOfWorkingServers < 1)
return Task.CompletedTask;
Expand All @@ -1901,7 +1901,7 @@ async Task connectAll()
return Task.CompletedTask;
});
await Task.Delay(1000);
if (IsConnected)
if (IsDNSConnected || IsDoHConnected)
{
UpdateStatus();
if (!ProcessManager.FindProcessByName("goodbyedpi"))
Expand Down

0 comments on commit 0252d19

Please sign in to comment.