comparison src/protocols/jabber/jabber.c @ 13941:46be62b128c7

[gaim-migrate @ 16477] This problem seems to exist on gnutls too; there's really no need ever to try to send data after getting forcably disconnected anyway. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Mon, 10 Jul 2006 18:02:48 +0000
parents b9404076ef67
children b14fdab68eac
comparison
equal deleted inserted replaced
13940:fe1c92e1494a 13941:46be62b128c7
917 917
918 static void jabber_close(GaimConnection *gc) 918 static void jabber_close(GaimConnection *gc)
919 { 919 {
920 JabberStream *js = gc->proto_data; 920 JabberStream *js = gc->proto_data;
921 921
922 /* This is for Adium. Gaim never uses OpenSSL, because of licensing issues,
923 * and our configure doesn't check for it. -- rlaager */
924 #ifdef HAVE_OPENSSL
925 /* If using OpenSSL, don't perform any actions on the ssl connection 922 /* If using OpenSSL, don't perform any actions on the ssl connection
926 * if we were forcibly disconnected because it will crash. -- evands 923 * if we were forcibly disconnected because it will crash. -- evands
927 */ 924 */
928 if (!gc->disconnect_timeout) 925 if (!gc->disconnect_timeout)
929 #endif 926 jabber_send_raw(js, "</stream:stream>", -1);
930 jabber_send_raw(js, "</stream:stream>", -1);
931 927
932 if(js->gsc) { 928 if(js->gsc) {
933 #ifdef HAVE_OPENSSL 929 #ifdef HAVE_OPENSSL
934 if (!gc->disconnect_timeout) 930 if (!gc->disconnect_timeout)
935 #endif 931 #endif