aboutsummaryrefslogtreecommitdiff
path: root/client/src/injection
diff options
context:
space:
mode:
authorauth12 <[email protected]>2020-08-03 21:08:06 +0100
committerauth12 <[email protected]>2020-08-03 21:08:06 +0100
commitad8cf7c80590b96ad4e61f3f4eb397704a22ee4b (patch)
treef376bc6ce8b7ababd4bcc67bee748c6e1d672b0c /client/src/injection
parentStarted security. (diff)
downloadloader-ad8cf7c80590b96ad4e61f3f4eb397704a22ee4b.tar.xz
loader-ad8cf7c80590b96ad4e61f3f4eb397704a22ee4b.zip
Added ui.
Diffstat (limited to 'client/src/injection')
-rw-r--r--client/src/injection/mapper.cpp8
1 files changed, 8 insertions, 0 deletions
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