tFix issue that prevents correct sending of INCOMPLETE buffers. - ratox - FIFO based tox client
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 1c3f35ffeb032ae4e8ce939eca8e5e9466b046a9
(DIR) parent 9009ccdb0dc325e9db12ffffec7b752dce48469c
(HTM) Author: pranomostro <pranomestro@gmail.com>
Date: Tue, 22 Nov 2016 17:56:50 +0100
Fix issue that prevents correct sending of INCOMPLETE buffers.
f->av.state & INCOMPLETE was evaluated as 8, which made the third test always false.
Diffstat:
M ratox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/ratox.c b/ratox.c
t@@ -495,7 +495,7 @@ sendfriendcalldata(struct friend *f)
return;
} else if (n < 0) {
return;
- } else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE) * f->av.n)) {
+ } else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE ? f->av.n : 0))) {
f->av.state &= ~INCOMPLETE;
f->av.n = 0;
} else {