Mercurial > pidgin
diff src/protocols/oscar/txqueue.c @ 10267:9cafe038c95e
[gaim-migrate @ 11413]
This is some white-space cleanup for oscar, and send an empty channel 4
FLAP when disconnecting. This would have hopefully fixed the problem
Luke was seeing where his AIM account wasn't being signed offline for
a few hours.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 26 Nov 2004 03:52:00 +0000 |
parents | 14bffb758b34 |
children | ccb38cf22483 |
line wrap: on
line diff
--- a/src/protocols/oscar/txqueue.c Fri Nov 26 02:57:23 2004 +0000 +++ b/src/protocols/oscar/txqueue.c Fri Nov 26 03:52:00 2004 +0000 @@ -51,13 +51,13 @@ if (!(fr = (aim_frame_t *)calloc(1, sizeof(aim_frame_t)))) return NULL; - fr->conn = conn; + fr->conn = conn; fr->hdrtype = framing; if (fr->hdrtype == AIM_FRAMETYPE_FLAP) fr->hdr.flap.channel = chan; else if (fr->hdrtype == AIM_FRAMETYPE_OFT) fr->hdr.rend.type = chan; - else + else faimdprintf(sess, 0, "tx_new: unknown framing\n"); if (datalen > 0) { @@ -83,7 +83,7 @@ static flap_seqnum_t aim_get_next_txseqnum(aim_conn_t *conn) { flap_seqnum_t ret; - + ret = ++conn->seqnum; return ret; @@ -161,7 +161,7 @@ faim_export int aim_tx_setenqueue(aim_session_t *sess, int what, int (*func)(aim_session_t *, aim_frame_t *)) { - + if (what == AIM_TX_QUEUED) sess->tx_enqueue = &aim_tx_enqueue__queuebased; else if (what == AIM_TX_IMMEDIATE) @@ -178,7 +178,7 @@ faim_internal int aim_tx_enqueue(aim_session_t *sess, aim_frame_t *fr) { - + /* * If we want to send on a connection that is in progress, we have to force * them to use the queue based version. Otherwise, use whatever they @@ -231,7 +231,7 @@ * up an actual txqueue and a GAIM_INPUT_WRITE callback and only write when we * can. Why is this file called txqueue anyway? Lets rename it to txblock. */ - if ((conn->type == AIM_CONN_TYPE_RENDEZVOUS) && + if ((conn->type == AIM_CONN_TYPE_RENDEZVOUS) && (conn->subtype == AIM_CONN_SUBTYPE_OFT_DIRECTIM)) { const char *sn = aim_odc_getsn(conn); aim_rxcallback_t userfunc; @@ -286,7 +286,7 @@ aim_bstream_rewind(&bs); if (aim_bstream_send(&bs, fr->conn, bslen) != bslen) err = -errno; - + free(bs_raw); /* XXX aim_bstream_free */ fr->handled = 1;