# HG changeset patch # User Nicolas Cornu # Date 1286136119 -7200 # Node ID 9aee866bdb9a6719dee5d5cf88460add335e9ec1 # Parent f699f6b47613e4554d77086ac691c50a217cd1b0 JFT: when no ressource, change state from PENDING to ERROR diff -r f699f6b47613 -r 9aee866bdb9a jingle-ft/filetransfer.c --- a/jingle-ft/filetransfer.c Sun Sep 12 18:32:57 2010 +0200 +++ b/jingle-ft/filetransfer.c Sun Oct 03 22:01:59 2010 +0200 @@ -443,12 +443,15 @@ if (CURRENT_JID == NULL) { // CURRENT_JID = the jid of the user which has focus scr_LogPrint(LPRINT_LOGNORM, "Jingle File Transfer: Please, choose a valid JID in the roster"); + jft->state = JINGLE_FT_ERROR; return; } ressource = jingle_find_compatible_res(CURRENT_JID, namespaces); if (ressource == NULL) { scr_LogPrint(LPRINT_LOGNORM, "Jingle File Transfer: Cannot send file, because this buddy" " has no compatible ressource available"); + + jft->state = JINGLE_FT_ERROR; return; } @@ -806,3 +809,4 @@ if (jft_cid) compl_del_category(jft_cid); } +/* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */