summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorpranomostro <pranomestro@gmail.com>2016-11-22 17:56:50 +0100
committerpranomostro <pranomestro@gmail.com>2016-11-22 17:56:50 +0100
commit1c3f35ffeb032ae4e8ce939eca8e5e9466b046a9 (patch)
tree63c42d0a40cafbd7ce471d3ac8c2b5b520aa4070 /ratox.c
parent9009ccdb0dc325e9db12ffffec7b752dce48469c (diff)
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 (limited to 'ratox.c')
-rw-r--r--ratox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratox.c b/ratox.c
index d5ca466..daf40ef 100644
--- a/ratox.c
+++ b/ratox.c
@@ -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 {