diff options
| author | auth12 <[email protected]> | 2020-07-22 12:40:54 -0700 |
|---|---|---|
| committer | auth12 <[email protected]> | 2020-07-22 12:40:54 -0700 |
| commit | 27543e1ad39c4a06ec381df2b5bb8cb48377e33b (patch) | |
| tree | ed8fee85487565527868b9aaeea013f989522a55 /client/src/main.cpp | |
| parent | Added wolfssl as a submodule (diff) | |
| download | loader-27543e1ad39c4a06ec381df2b5bb8cb48377e33b.tar.xz loader-27543e1ad39c4a06ec381df2b5bb8cb48377e33b.zip | |
Injection and server changes.
Diffstat (limited to 'client/src/main.cpp')
| -rw-r--r-- | client/src/main.cpp | 7 |
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)); + } + } |