1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2025-01-10 11:26:15 +00:00

meso: KServerPort dtor

This commit is contained in:
TuxSH 2018-11-13 11:01:46 +01:00 committed by Michael Scire
parent ad879ca327
commit fb4e0988b9

View file

@ -8,9 +8,18 @@ namespace mesosphere
KServerPort::~KServerPort() KServerPort::~KServerPort()
{ {
KScopedCriticalSection critsec{}; KCriticalSection &critsec = KScheduler::GetCriticalSection();
critsec.lock();
parent->isServerAlive = false; 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 bool KServerPort::IsSignaled() const