tCancel transfer first, then remove files (we need the fd) - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4b8ac3cbca060cd83239d3429173bdd74a90c813
 (DIR) parent 6d37651aad27119cda9f786046f2694ddbb538ec
 (HTM) Author: sin <sin@2f30.org>
       Date:   Tue, 23 Sep 2014 14:55:14 +0100
       
       Cancel transfer first, then remove files (we need the fd)
       
       Diffstat:
         M ratox.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -928,6 +928,7 @@ frienddestroy(struct friend *f)
        {
                int i;
        
       +        canceltransfer(f);
                for (i = 0; i < LEN(ffiles); i++) {
                        if (f->dirfd != -1) {
                                unlinkat(f->dirfd, ffiles[i].name, 0);
       t@@ -936,7 +937,6 @@ frienddestroy(struct friend *f)
                        }
                }
                rmdir(f->idstr);
       -        canceltransfer(f);
                TAILQ_REMOVE(&friendhead, f, entry);
        }