~singpolyma/biboumi

962bac476cc69362b748675db58ea6eb364501e8 — louiz’ 7 years ago 7376831
Trivial refactor of get_user_bridge function
1 files changed, 1 insertions(+), 2 deletions(-)

M src/xmpp/biboumi_component.cpp
M src/xmpp/biboumi_component.cpp => src/xmpp/biboumi_component.cpp +1 -2
@@ 663,8 663,7 @@ Bridge* BiboumiComponent::get_user_bridge(const std::string& user_jid)
    }
  catch (const std::out_of_range& exception)
    {
      this->bridges.emplace(bare_jid, std::make_unique<Bridge>(bare_jid, *this, this->poller));
      return this->bridges.at(bare_jid).get();
      return this->bridges.emplace(bare_jid, std::make_unique<Bridge>(bare_jid, *this, this->poller)).first->second.get();
    }
}