wsd: cosmetics

Change-Id: I250590b105dbfdd6a0589327fece752481253863
Reviewed-on: https://gerrit.libreoffice.org/33127
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian
2017-01-13 18:10:10 -05:00
committed by Ashod Nakashian
parent 05620be4c5
commit bc36241d89

View File

@ -596,9 +596,6 @@ size_t DocumentBroker::addSession(std::shared_ptr<ClientSession>& session)
{
Util::assertIsLocked(_mutex);
const auto id = session->getId();
const std::string aMessage = "session " + id + " " + _docKey;
try
{
// First load the document, since this can fail.
@ -626,6 +623,7 @@ size_t DocumentBroker::addSession(std::shared_ptr<ClientSession>& session)
_lastEditableSession = false;
_markToDestroy = false;
const auto id = session->getId();
if (!_sessions.emplace(id, session).second)
{
LOG_WRN("DocumentBroker: Trying to add already existing session.");
@ -634,6 +632,7 @@ size_t DocumentBroker::addSession(std::shared_ptr<ClientSession>& session)
const auto count = _sessions.size();
// Request a new session from the child kit.
const std::string aMessage = "session " + id + ' ' + _docKey;
_childProcess->sendTextFrame(aMessage);
// Now we are ready to bridge between the kit and client.