From ad8cf7c80590b96ad4e61f3f4eb397704a22ee4b Mon Sep 17 00:00:00 2001 From: auth12 <67507608+auth12@users.noreply.github.com> Date: Mon, 3 Aug 2020 21:08:06 +0100 Subject: Added ui. --- client/src/injection/mapper.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'client/src/injection/mapper.cpp') diff --git a/client/src/injection/mapper.cpp b/client/src/injection/mapper.cpp index 28b5409..732395d 100644 --- a/client/src/injection/mapper.cpp +++ b/client/src/injection/mapper.cpp @@ -5,6 +5,10 @@ #include "mapper.h" void mmap::thread(tcp::client& client) { + while (!client) { + std::this_thread::sleep_for(std::chrono::microseconds(100)); + } + while (client) { if (client.state != tcp::client_state::imports_ready) { std::this_thread::sleep_for(std::chrono::seconds(5)); @@ -147,6 +151,8 @@ void mmap::map32(tcp::client& client) { io::log("done"); + std::this_thread::sleep_for(std::chrono::seconds(3)); + client.shutdown(); } @@ -278,5 +284,7 @@ void mmap::map64(tcp::client& client) { io::log("done"); + std::this_thread::sleep_for(std::chrono::seconds(3)); + client.shutdown(); } \ No newline at end of file -- cgit v1.2.3