wsd/LOOLWSD.cpp | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
New commits: commit d67437735f6962fd000e0b2eeb2afae307c18fa8 Author: Ashod Nakashian <ashod.nakash...@collabora.co.uk> Date: Fri Dec 30 17:20:45 2016 -0500 wsd: cleanup all DocBrokers when one is removed Change-Id: I1010093185e117f50f56d96e73d0771c52113d90 Reviewed-on: https://gerrit.libreoffice.org/32614 Reviewed-by: Ashod Nakashian <ashnak...@gmail.com> Tested-by: Ashod Nakashian <ashnak...@gmail.com> diff --git a/wsd/LOOLWSD.cpp b/wsd/LOOLWSD.cpp index 6161eb7..f30edf0 100644 --- a/wsd/LOOLWSD.cpp +++ b/wsd/LOOLWSD.cpp @@ -1021,18 +1021,7 @@ private: // order and check again. We can't take the DocBrokersMutex while // holding the docBroker lock as that can deadlock with autoSave below. std::unique_lock<std::mutex> docBrokersLock2(DocBrokersMutex); - it = DocBrokers.find(docKey); - if (it != DocBrokers.end() && it->second) - { - auto lock = it->second->getLock(); - if (it->second->getSessionsCount() == 0) - { - LOG_INF("Removing DocumentBroker for docKey [" << docKey << "]."); - DocBrokers.erase(docKey); - docBroker->terminateChild(lock); - LOG_TRC("Have " << DocBrokers.size() << " DocBrokers after removing [" << docKey << "]."); - } - } + cleanupDocBrokers(); } if (SigUtil::isShuttingDown()) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits