diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2022-03-01 21:38:49 -0500 |
---|---|---|
committer | Ashod Nakashian <Ashod@users.noreply.github.com> | 2022-03-09 19:24:40 -0500 |
commit | b6920d30aff2b72d3cdfb0b57dfa3b2671241a6e (patch) | |
tree | 78860bb640b6afa2f6e6584c45129d944ce6ab62 /wsd/DocumentBroker.cpp | |
parent | wsd: more informative timestamps in dumpState (diff) | |
download | online-b6920d30aff2b72d3cdfb0b57dfa3b2671241a6e.tar.gz online-b6920d30aff2b72d3cdfb0b57dfa3b2671241a6e.zip |
wsd: assert that we don't have more than one active session
Change-Id: I0c404b19187658d28f6371a1e58430d3a93d6cbc
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
Diffstat (limited to 'wsd/DocumentBroker.cpp')
-rw-r--r-- | wsd/DocumentBroker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp index 906e244ca8..e432db1b3e 100644 --- a/wsd/DocumentBroker.cpp +++ b/wsd/DocumentBroker.cpp @@ -2245,7 +2245,7 @@ void DocumentBroker::disconnectSessionInternal(const std::string& id) if (_docState.isUnloadRequested()) { // We must be the last session, flag to destroy if unload is requested. - assert(_sessions.size() == 1 && "Unload-requested with multiple sessions."); + assert(countActiveSessions() <= 1 && "Unload-requested with multiple sessions."); _docState.markToDestroy(); LOG_TRC("Unload requested while disconnecting session [" << id << "], having " << _sessions.size() |