Small refactor of conditions

Change-Id: Id3884d8385bf1c138eef2909220bfef352b95370
This commit is contained in:
Szymon Kłos 2018-12-21 15:58:16 +01:00 committed by Jan Holesovsky
parent d30ade3ff3
commit 8613f11c75

View file

@ -1242,12 +1242,9 @@ public:
for (auto& it : self->_sessions)
{
std::shared_ptr<ChildSession> session = it.second;
if (session)
if (session && !it.second->isCloseFrame())
{
if (!it.second->isCloseFrame())
{
session->loKitCallback(type, payload);
}
session->loKitCallback(type, payload);
}
}
return;