mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
meso: KServerPort dtor
This commit is contained in:
parent
ad879ca327
commit
fb4e0988b9
1 changed files with 11 additions and 2 deletions
|
@ -8,9 +8,18 @@ namespace mesosphere
|
|||
|
||||
KServerPort::~KServerPort()
|
||||
{
|
||||
KScopedCriticalSection critsec{};
|
||||
KCriticalSection &critsec = KScheduler::GetCriticalSection();
|
||||
critsec.lock();
|
||||
parent->isServerAlive = false;
|
||||
// TODO
|
||||
// TODO: normal sessions
|
||||
lightServerSessions.clear_and_dispose(
|
||||
[&critsec](KLightServerSession *s) {
|
||||
critsec.unlock();
|
||||
intrusive_ptr_release(s);
|
||||
critsec.lock();
|
||||
}
|
||||
);
|
||||
critsec.unlock();
|
||||
}
|
||||
|
||||
bool KServerPort::IsSignaled() const
|
||||
|
|
Loading…
Reference in a new issue