From e1639077d5a4a1012479f94c2b6a25851138c91e Mon Sep 17 00:00:00 2001 From: sin Date: Thu, 25 Sep 2014 11:15:25 +0100 Subject: Flag transfer completion by changing state --- ratox.c | 1 + 1 file changed, 1 insertion(+) 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) -- cgit v1.2.3