From 0db66186f49438ae9c2f73ca85b915e999896309 Mon Sep 17 00:00:00 2001 From: dequis Date: Mon, 26 Oct 2015 05:18:51 -0300 Subject: Use proxy_disconnect() in http, ssl, jabber, oscar Twitter and MSN are all HTTP/SSL, so they don't need it either. The out of tree facebook and steam plugins are also covered by the HTTP/SSL changes. Yahoo is written in a weird way and doesn't seem to need it (it seems it doesn't immediately stop connections when you tell it to logout) --- protocols/jabber/jabber.c | 2 +- protocols/oscar/conn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/jabber/jabber.c b/protocols/jabber/jabber.c index 74c870e7..0dbcfa4e 100644 --- a/protocols/jabber/jabber.c +++ b/protocols/jabber/jabber.c @@ -344,7 +344,7 @@ static void jabber_logout(struct im_connection *ic) ssl_disconnect(jd->ssl); } if (jd->fd >= 0) { - closesocket(jd->fd); + proxy_disconnect(jd->fd); } if (jd->tx_len) { diff --git a/protocols/oscar/conn.c b/protocols/oscar/conn.c index 568f4548..ce29abce 100644 --- a/protocols/oscar/conn.c +++ b/protocols/oscar/conn.c @@ -316,7 +316,7 @@ void aim_conn_close(aim_conn_t *deadconn) { if (deadconn->fd >= 3) { - closesocket(deadconn->fd); + proxy_disconnect(deadconn->fd); } deadconn->fd = -1; if (deadconn->handlerlist) { -- cgit v1.2.3