Mercurial > pidgin
diff src/protocols/oscar/conn.c @ 5435:a2f26666de42
[gaim-migrate @ 5817]
Phroggie says windows doesn't have a z modifier, so I'm just going to
change size_t to an int, since it really doesn't matter.
I also changed some sprintf's to snprintf's, I'm not really sure why.
Changed a printf to gaim_debug in oscar.c, I don't know how that got
in there. And I applied a patch that adds an optional callback thing
for when a connection is closed. Gaim doesn't use it, but the guy
that submitted the patch said it was useful to him.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 18 May 2003 19:13:21 +0000 |
parents | 2e78141ec1b5 |
children | 594682101ba6 |
line wrap: on
line diff
--- a/src/protocols/oscar/conn.c Sun May 18 18:34:01 2003 +0000 +++ b/src/protocols/oscar/conn.c Sun May 18 19:13:21 2003 +0000 @@ -316,10 +316,16 @@ */ faim_export void aim_conn_close(aim_conn_t *deadconn) { + aim_rxcallback_t userfunc; if (deadconn->fd >= 3) close(deadconn->fd); + deadconn->fd = -1; + + if ((userfunc = aim_callhandler(deadconn->sessv, deadconn, AIM_CB_FAM_SPECIAL, AIM_CB_SPECIAL_CONNDEAD))) + userfunc(deadconn->sessv, NULL, deadconn); + if (deadconn->handlerlist) aim_clearhandlers(deadconn);