auth: delete error handler before re-opening stream

This commit is contained in:
Dmitry Podgorny
2017-06-23 21:51:44 +03:00
parent ba40bf1040
commit fa63aac731

View File

@@ -288,6 +288,8 @@ static int _handle_proceedtls_default(xmpp_conn_t * const conn,
xmpp_debug(conn->ctx, "xmpp", "proceeding with TLS");
if (conn_tls_start(conn) == 0) {
/* we are about to re-open stream, add new error handler after */
xmpp_handler_delete(conn, _handle_error);
conn_prepare_reset(conn, auth_handle_open);
conn_open_stream(conn);
} else {