aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-02-09 21:24:24 -0800
committerFuwn <[email protected]>2022-02-09 21:24:24 -0800
commit6b04da83354914bb78680e41650172805e33f40e (patch)
treed127a5038633fde2fd5572fa0c6595f35abe50c8
parentchore: update license date (diff)
downloadsoyuz-6b04da83354914bb78680e41650172805e33f40e.tar.xz
soyuz-6b04da83354914bb78680e41650172805e33f40e.zip
fix(#1): detach instead of join, we don't care about NtQueryObject
-rw-r--r--soyuz/soyuz.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/soyuz/soyuz.cc b/soyuz/soyuz.cc
index b88b76b..6ea908f 100644
--- a/soyuz/soyuz.cc
+++ b/soyuz/soyuz.cc
@@ -88,7 +88,6 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int show) {
soyuz::log("hooked lunar client"); soyuz::log("you may now close this window");
while (!stop.stop_requested()) {
-
/**
* Check if Lunar Client is open before every `delete_handle` run, if not; timeout
*
@@ -113,9 +112,10 @@ int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int show) {
}
soyuz::log("requesting exit");
- soyuz.request_stop(); soyuz.join();
+ soyuz.request_stop(); soyuz.detach();
soyuz::log("exiting");
soyuz::close_log_file();
+
return (int)messages.wParam;
}