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