Avoid some -Wcomma warnings

This commit is contained in:
Paul Cornett
2026-06-15 22:20:39 -07:00
parent e69213eca1
commit be1274d517
4 changed files with 21 additions and 12 deletions
+6 -6
View File
@@ -463,13 +463,13 @@ static bool DoCheckConnection()
wxSocketClient sock;
sock.SetTimeout(10); // 10 secs
bool online = sock.Connect(addr) &&
(sock.Write(HTTP_GET, strlen(HTTP_GET)), sock.WaitForRead(1));
return online;
#else
return false;
if (sock.Connect(addr))
{
sock.Write(HTTP_GET, strlen(HTTP_GET));
return sock.WaitForRead(1);
}
#endif
return false;
}
extern bool IsNetworkAvailable()