Changeset 8a90001 for protocols/jabber/si.c
- Timestamp:
- 2008-07-22T12:37:49Z (15 years ago)
- Branches:
- master
- Children:
- 4ac647d
- Parents:
- 9afeefa
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/si.c
r9afeefa r8a90001 39 39 jd->filetransfers = g_slist_remove( jd->filetransfers, tf ); 40 40 41 if( tf->fd )41 if( tf->fd != -1 ) 42 42 { 43 43 close( tf->fd ); 44 tf->fd = 0;44 tf->fd = -1; 45 45 } 46 46 … … 129 129 130 130 if( tf->bud->features && jd->have_streamhosts==1 ) { 131 tf->disco_timeout = 0; 131 132 jabber_si_transfer_start( tf ); 132 tf->disco_timeout = 0;133 133 return FALSE; 134 134 } … … 139 139 140 140 if( !tf->bud->features && jd->have_streamhosts!=1 ) 141 imcb_ file_canceled( tf->ft, "Couldn't get buddy's features or the server's" );141 imcb_log( tf->ic, "Couldn't get buddy's features nor discover all services of the server" ); 142 142 else if( !tf->bud->features ) 143 imcb_ file_canceled( tf->ft, "Couldn't get buddy's features" );143 imcb_log( tf->ic, "Couldn't get buddy's features" ); 144 144 else 145 imcb_ file_canceled( tf->ft, "Couldn't get server's features" );145 imcb_log( tf->ic, "Couldn't discover some of the server's services" ); 146 146 147 147 tf->disco_timeout = 0; 148 jabber_si_transfer_start( tf ); 148 149 return FALSE; 149 150 } … … 173 174 tf->ic = ic; 174 175 tf->ft = ft; 176 tf->fd = -1; 175 177 tf->ft->data = tf; 176 178 tf->ft->free = jabber_si_free_transfer; … … 186 188 jabber_iq_query_features( ic, bud->full_jid ); 187 189 188 if( jd->have_streamhosts!=1 ) { 190 /* If <auto> is not set don't check for proxies */ 191 if( ( jd->have_streamhosts!=1 ) && ( jd->streamhosts==NULL ) && 192 ( strstr( set_getstr( &ic->acc->set, "proxy" ), "<auto>" ) != NULL ) ) { 189 193 jd->have_streamhosts = 0; 190 194 jabber_iq_query_server( ic, server, XMLNS_DISCO_ITEMS ); 191 } 195 } else if ( jd->streamhosts!=NULL ) 196 jd->have_streamhosts = 1; 192 197 193 198 /* if we had to do a query, wait for the result. … … 309 314 tf->ic = ic; 310 315 tf->ft = ft; 316 tf->fd = -1; 311 317 tf->ft->data = tf; 312 318 tf->ft->accept = jabber_si_answer_request;
Note: See TracChangeset
for help on using the changeset viewer.