# HG changeset patch # User Nathan Walp # Date 1073332734 0 # Node ID 03a689c3b3b7a5beb91dfb363639c2860a54108d # Parent 5a6853d0ae275f885b6fd88605ecd5cdf978d1ad [gaim-migrate @ 8693] a fix for cancelled jabber connections from blino committer: Tailor Script diff -r 5a6853d0ae27 -r 03a689c3b3b7 src/protocols/jabber/jabber.c --- a/src/protocols/jabber/jabber.c Mon Jan 05 19:52:46 2004 +0000 +++ b/src/protocols/jabber/jabber.c Mon Jan 05 19:58:54 2004 +0000 @@ -228,6 +228,8 @@ if(js->gsc) { ret = gaim_ssl_write(js->gsc, data, len == -1 ? strlen(data) : len); } else { + if(js->fd < 0) + return; ret = write(js->fd, data, len == -1 ? strlen(data) : len); } @@ -371,6 +373,7 @@ gc->flags |= GAIM_CONNECTION_HTML; js = gc->proto_data = g_new0(JabberStream, 1); js->gc = gc; + js->fd = -1; js->callbacks = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, g_free); js->buddies = g_hash_table_new_full(g_str_hash, g_str_equal,