loolwsd: Don't send addview notification to inactive clients

Change-Id: I4771e4bf12057fdc7099e9433d3b7dc2198cb265
This commit is contained in:
Pranav Kant 2016-09-03 01:51:04 +05:30
parent c4733fd4d2
commit 9edb1c2994

View file

@ -956,7 +956,7 @@ private:
if (it.second->isRunning() && it.second->getSessionId() != sessionId)
{
auto session = it.second->getSession();
if (session)
if (session && session->isActive())
{
session->sendTextFrame(message);
}
@ -976,6 +976,11 @@ private:
}
auto currentSession = it->second->getSession();
if (!currentSession->isActive())
{
return;
}
for (auto& connectionIt: _connections)
{
if (connectionIt.second->isRunning() && connectionIt.second->getSessionId() != sessionId)