Partial fix for #11. Correctly calls connection handler on timeout now,

but doesn't yet set the error.
This commit is contained in:
Jack Moffitt
2005-12-01 23:09:20 +00:00
parent 003b0528cd
commit 68c9a71774
3 changed files with 22 additions and 3 deletions

View File

@@ -153,6 +153,7 @@ struct _xmpp_conn_t {
xmpp_conn_type_t type;
xmpp_conn_state_t state;
uint64_t timeout_stamp;
int error;
xmpp_stream_error_t *stream_error;
sock_t sock;
@@ -184,6 +185,9 @@ struct _xmpp_conn_t {
int depth;
xmpp_stanza_t *stanza;
/* timeouts */
unsigned int connect_timeout;
/* event handlers */
/* stream open handler */