summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-24 14:16:02 +0100
committersin <sin@2f30.org>2014-09-24 14:16:02 +0100
commit2db140446d2e1c7befa1817cddba4b661dbe413b (patch)
treeb2805f42f40b0bbfdcf0877a7a5fe36670a3bb59 /ratox.c
parent7a22a7405d6c963939cce1275961f637c4d99f91 (diff)
Inform the user when we cancel pending transfers
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index 79d4961..5ec25d4 100644
--- a/ratox.c
+++ b/ratox.c
@@ -571,6 +571,8 @@ canceltransfer(struct friend *f)
}
/* Cancel RX transfers */
if (f->recvfileactive == 1) {
+ printout("Cancelling transfer from %s\n",
+ f->namestr[0] == '\0' ? "Anonymous" : f->namestr);
tox_file_send_control(tox, f->fid, 1, 0, TOX_FILECONTROL_KILL, NULL, 0);
if (f->fd[FFILE_OUT] != -1) {
close(f->fd[FFILE_OUT]);