mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 06:23:04 +01:00
Refactor object and network constants to kCamelCase
This commit is contained in:
@@ -73,7 +73,7 @@
|
||||
|
||||
# include "Socket.h"
|
||||
|
||||
constexpr auto CONNECT_TIMEOUT = std::chrono::milliseconds(3000);
|
||||
constexpr auto kConnectTimeout = std::chrono::milliseconds(3000);
|
||||
|
||||
// RAII WSA initialisation needed for Windows
|
||||
# ifdef _WIN32
|
||||
@@ -492,7 +492,7 @@ public:
|
||||
return;
|
||||
}
|
||||
}
|
||||
} while ((std::chrono::system_clock::now() - connectStartTime) < CONNECT_TIMEOUT);
|
||||
} while ((std::chrono::system_clock::now() - connectStartTime) < kConnectTimeout);
|
||||
|
||||
// Connection request timed out
|
||||
throw SocketException("Connection timed out.");
|
||||
|
||||
Reference in New Issue
Block a user