loolwsd: Don't send addview notification to inactive clients
Change-Id: I4771e4bf12057fdc7099e9433d3b7dc2198cb265
This commit is contained in:
parent
c4733fd4d2
commit
9edb1c2994
1 changed files with 6 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue