Fixed loop exit condition
This commit is contained in:
@@ -36,7 +36,7 @@ namespace WD7UVN_HFT_2023241.Client
|
|||||||
{
|
{
|
||||||
isOk = Ping(baseurl + pingableEndpoint);
|
isOk = Ping(baseurl + pingableEndpoint);
|
||||||
tries++;
|
tries++;
|
||||||
} while (isOk == false || tries > 5);
|
} while (isOk == false && tries < 5);
|
||||||
|
|
||||||
if (isOk == false)
|
if (isOk == false)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user