Mercurial > pidgin.yaz
diff src/protocols/jabber/jabber.c @ 8013:03a689c3b3b7
[gaim-migrate @ 8693]
a fix for cancelled jabber connections from blino
committer: Tailor Script <tailor@pidgin.im>
author | Nathan Walp <nwalp@pidgin.im> |
---|---|
date | Mon, 05 Jan 2004 19:58:54 +0000 |
parents | 335a54c6fd90 |
children | 7bae464195c4 |
line wrap: on
line diff
--- 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,