diff options
author | pranomostro <pranomestro@gmail.com> | 2016-11-22 17:56:50 +0100 |
---|---|---|
committer | pranomostro <pranomestro@gmail.com> | 2016-11-22 17:56:50 +0100 |
commit | 1c3f35ffeb032ae4e8ce939eca8e5e9466b046a9 (patch) | |
tree | 63c42d0a40cafbd7ce471d3ac8c2b5b520aa4070 | |
parent | 9009ccdb0dc325e9db12ffffec7b752dce48469c (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.
-rw-r--r-- | ratox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 { |