Refactoring: Moved some code from headers to dedicated source files

This commit is contained in:
DcruBro
2025-11-10 23:19:39 +01:00
parent 9252425bdf
commit 4b4451d1a9
7 changed files with 588 additions and 538 deletions

View File

@@ -74,7 +74,8 @@ int main(int argc, char** argv) {
log("Client connected to " + host + ":" + port);
// Client is running
while ((!done && client->isConnected()) || !client->isHandshakeComplete()) {
// TODO: SIGINT or SIGTERM seems to not kill this instantly!
while (client->isConnected() || !client->isHandshakeComplete() || !done) {
std::this_thread::sleep_for(std::chrono::milliseconds(100)); // Temp wait
if (client->isHandshakeComplete()) {