From 27543e1ad39c4a06ec381df2b5bb8cb48377e33b Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Wed, 22 Jul 2020 12:40:54 -0700 Subject: Injection and server changes. --- client/src/main.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'client/src/main.cpp') 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)); + } + } -- cgit v1.2.3