diff --git a/kit/Kit.cpp b/kit/Kit.cpp index 8fd0d54fc..ab0adaa6b 100644 --- a/kit/Kit.cpp +++ b/kit/Kit.cpp @@ -1242,12 +1242,9 @@ public: for (auto& it : self->_sessions) { std::shared_ptr session = it.second; - if (session) + if (session && !it.second->isCloseFrame()) { - if (!it.second->isCloseFrame()) - { - session->loKitCallback(type, payload); - } + session->loKitCallback(type, payload); } } return;