bugfix: do not check twice the session

Signed-off-by: Lucian Cojocar <cojocar@gmail.com>