Simplify session thread handling in Core
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 7 Feb 2015 16:25:43 +0000 (17:25 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 7 Feb 2015 16:25:43 +0000 (17:25 +0100)
commitbcf5b100646fb19b15ab5ba3ef72e707659e7208
tree1fcc8f27386011f473b63de973fbd7f33f340bc4
parent2ffa023cc8612f8239a6130a5f93bc9875a41f53
Simplify session thread handling in Core

Whenever we want to get a session thread for a given user, we first
would check if we already have one and get that, or create a new one.
Instead of doing this several times in the code, this commit just
turns the former createSession() method into sessionForUser(), which
will create a thread if needed. This also removes a dead assignment
clang-analyzer complained about.
src/core/core.cpp
src/core/core.h