X-Git-Url: http://andersk.mit.edu/gitweb/libfaim.git/blobdiff_plain/5ac21963e7e99cbffce3b0bb009a1320885776c7..313a06b7b4be217e90a17413862dc04552f693c3:/aim_rxqueue.c diff --git a/aim_rxqueue.c b/aim_rxqueue.c index 021fe95..a26648a 100644 --- a/aim_rxqueue.c +++ b/aim_rxqueue.c @@ -7,7 +7,10 @@ */ #include + +#ifndef _WIN32 #include +#endif /* * Since not all implementations support MSG_WAITALL, define @@ -57,6 +60,9 @@ faim_export int aim_get_command(struct aim_session_t *sess, struct aim_conn_t *c if (conn->fd < 3) /* can happen when people abuse the interface */ return 0; + if (conn->status & AIM_CONN_STATUS_INPROGRESS) + return aim_conn_completeconnect(sess, conn); + /* * Rendezvous (client-client) connections do not speak * FLAP, so this function will break on them.