Fixing open session function comparision

Change-Id: I6fe5378bc4683c1bc5d902915d52d7c7f66d6f11
Signed-off-by: TanelDettenborn <tanel.dettenborn@gmail.com>