The condition checks whether the connection was established or not. The return value should reflect that. Signed-off-by: Caspar Friedrich <c.s.w.friedrich@gmail.com>