aboutsummaryrefslogtreecommitdiff
path: root/client/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/main.cpp')
-rw-r--r--client/src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/client/src/main.cpp b/client/src/main.cpp
index 6248460..0b6580c 100644
--- a/client/src/main.cpp
+++ b/client/src/main.cpp
@@ -21,6 +21,7 @@ int main(int argc, char* argv[]) {
t.detach();
std::thread t1{ mmap::thread, std::ref(client) };
+ t1.detach();
client.start("127.0.0.1", 6666);
@@ -170,6 +171,8 @@ int main(int argc, char* argv[]) {
}
- t1.join();
- std::cin.get();
+ while (client.state != tcp::client_state::injected) {
+ std::this_thread::sleep_for(std::chrono::seconds(1));
+ }
+
}