Fix excessive logging when a session hard quits very early on.

Pass the proper 'disconnect' message to the Kit so it can close
the underlying window / resource for the view.

Potentially this also removes 'phantom' users in the user-list
which might be another symptom of this issue.

Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
Change-Id: Ib0d0c5cefa7033fff5827d0a825a932cc12f8323
pull/9113/head
Michael Meeks 2024-05-17 16:40:11 +01:00 committed by Caolán McNamara
parent 49fecba982
commit d016690e09
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ bool ClientSession::disconnectFromKit()
{
assert(_state != SessionState::WAIT_DISCONNECT);
auto docBroker = getDocumentBroker();
if (_state == SessionState::LIVE && docBroker)
if (docBroker && (_state == SessionState::LIVE || _state == SessionState::LOADING))
{
setState(SessionState::WAIT_DISCONNECT);