If we are reconnecting and the connection is already established we end up looping forever if there is a socket error before we finish the login process. Fix this by invoking the reconnect callback if there is an error and no new reconnect is scheduled. Signed-off-by: Peter Lieven <pl@kamp.de>