tPost a KILL when cancelling transfers - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 6d37651aad27119cda9f786046f2694ddbb538ec
 (DIR) parent ed1c7602ecd2386de72e876960cec65db7dba9b4
 (HTM) Author: sin <sin@2f30.org>
       Date:   Tue, 23 Sep 2014 14:42:16 +0100
       
       Post a KILL when cancelling transfers
       
       Diffstat:
         M ratox.c                             |       5 +++--
       
       1 file changed, 3 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -492,6 +492,7 @@ canceltransfer(struct friend *f)
                if (f->t.state != TRANSFER_NONE) {
                        printout("Cancelling transfer to %s\n",
                                 f->namestr[0] == '\0' ? "Anonymous" : f->namestr);
       +                tox_file_send_control(tox, f->fid, 0, 0, TOX_FILECONTROL_KILL, NULL, 0);
                        f->t.state = TRANSFER_NONE;
                        free(f->t.buf);
                        f->t.buf = NULL;
       t@@ -1223,8 +1224,6 @@ shutdown(void)
                struct friend *f, *ftmp;
                struct request *r, *rtmp;
        
       -        tox_kill(tox);
       -
                /* friends */
                for (f = TAILQ_FIRST(&friendhead); f; f = ftmp) {
                        ftmp = TAILQ_NEXT(f, entry);
       t@@ -1259,6 +1258,8 @@ shutdown(void)
                        rmdir(gslots[i].name);
                }
                unlink("id");
       +
       +        tox_kill(tox);
        }
        
        static void