Add error handler only once

fixes #240
This commit is contained in:
James Booth
2013-09-22 00:12:20 +01:00
parent 892a9953b4
commit d0c8ed462d
3 changed files with 1 additions and 2 deletions

View File

@@ -484,6 +484,7 @@ _connection_handler(xmpp_conn_t * const conn,
chat_sessions_init();
xmpp_handler_add(conn, connection_error_handler, NULL, NULL, STANZA_TYPE_ERROR, ctx);
roster_add_handlers();
message_add_handlers();
presence_add_handlers();