summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-09-25 11:15:25 +0100
committersin <sin@2f30.org>2014-09-25 11:15:25 +0100
commite1639077d5a4a1012479f94c2b6a25851138c91e (patch)
tree6859b9082cd9ba8c2e6ef034a95d098c4df6af6c /ratox.c
parent6c626f3590cad76c7c800d43ae0a981ebc529018 (diff)
Flag transfer completion by changing state
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index f511925..d36cf7b 100644
--- a/ratox.c
+++ b/ratox.c
@@ -615,6 +615,7 @@ sendfriendfile(struct friend *f)
/* Signal transfer completion to other end */
tox_file_send_control(tox, f->fid, 0, f->t.fnum,
TOX_FILECONTROL_FINISHED, NULL, 0);
+ f->t.state = TRANSFER_DONE;
break;
}
if (n == -1)