Bunch more linting

This commit is contained in:
Henrik Rydgård committed 2024-10-10 11:57:10 +02:00
1 parent e0c12c9547
commit 4d6905672e
52 files changed
+214 -238

No files matched your search

+1 -4
View File
@@ -38,9 +38,6 @@
namespace net {
Connection::Connection() {
}
Connection::~Connection() {
Disconnect();
if (resolved_ != nullptr)
@@ -173,7 +170,7 @@ bool Connection::Connect(int maxTries, double timeout, bool *cancelConnect) {
int selectResult = 0;
long timeoutHalfSeconds = floor(2 * timeout);
while (timeoutHalfSeconds >= 0 && selectResult == 0) {
struct timeval tv;
struct timeval tv{};
tv.tv_sec = 0;
if (timeoutHalfSeconds > 0) {
// Wait up to 0.5 seconds between cancel checks.