mirror of
https://github.com/HIllya51/LunaHook.git
synced 2025-01-12 04:49:37 +08:00
Update LunaHost.cpp
This commit is contained in:
parent
89ef423bd8
commit
4b6cf1cdce
@ -39,10 +39,11 @@ void LunaHost::on_close(){
|
||||
hasstoped=true;
|
||||
savesettings();
|
||||
delete configs;
|
||||
for(auto pid:attachedprocess){
|
||||
auto _attachedprocess=attachedprocess;
|
||||
for(auto pid:_attachedprocess){
|
||||
Host::DetachProcess(pid);
|
||||
}
|
||||
if(attachedprocess.size())
|
||||
if(_attachedprocess.size())
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user