diff options
author | irungentoo <irungentoo@gmail.com> | 2015-03-20 21:15:44 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-03-20 21:15:44 -0400 |
commit | f2a017c055a8670d3bdbea2610455b45261a334e (patch) | |
tree | 65ec2203a66f00dd387b606f8ea98773b96cbf83 /auto_tests | |
parent | b1ec15717526679c6d107e3a5a4b2bf08c26b650 (diff) |
Allow sending of file transfer requests with length 0 but don't allocate
any file number for them in core.
These can be used to tell friends we don't have an avatar set or to unset
a set avatar.
Diffstat (limited to 'auto_tests')
-rw-r--r-- | auto_tests/tox_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/auto_tests/tox_test.c b/auto_tests/tox_test.c index 29b91bb2..66193035 100644 --- a/auto_tests/tox_test.c +++ b/auto_tests/tox_test.c | |||
@@ -202,6 +202,10 @@ void tox_file_chunk_request(Tox *tox, uint32_t friend_number, uint32_t file_numb | |||
202 | } | 202 | } |
203 | 203 | ||
204 | if (length == 0) { | 204 | if (length == 0) { |
205 | if (file_sending_done) { | ||
206 | ck_abort_msg("File sending already done."); | ||
207 | } | ||
208 | |||
205 | file_sending_done = 1; | 209 | file_sending_done = 1; |
206 | return; | 210 | return; |
207 | } | 211 | } |