re-use _auth_success() instead of copying ...
... and forgetting to 1. clear the password cache and 2. print a message of what exactly happened ... Signed-off-by: Steffen Jaeckel <jaeckel-floss@eyet-services.de>
This commit is contained in:
@@ -1239,10 +1239,8 @@ static int _handle_sm(xmpp_conn_t *const conn,
|
|||||||
}
|
}
|
||||||
strophe_free(conn->ctx, queue_element_free(conn->ctx, e));
|
strophe_free(conn->ctx, queue_element_free(conn->ctx, e));
|
||||||
}
|
}
|
||||||
conn->authenticated = 1;
|
strophe_debug(conn->ctx, "xmpp", "Session resumed successfully.");
|
||||||
|
_auth_success(conn);
|
||||||
/* call connection handler */
|
|
||||||
conn->conn_handler(conn, XMPP_CONN_CONNECT, 0, NULL, conn->userdata);
|
|
||||||
} else if (strcmp(name, "failed") == 0) {
|
} else if (strcmp(name, "failed") == 0) {
|
||||||
name = NULL;
|
name = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user