summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorz3bra <contactatz3bradotorg>2016-11-24 23:15:20 +0100
committerz3bra <contactatz3bradotorg>2016-11-24 23:15:20 +0100
commitae00397f4c17f72e08b07210cfcec2fb964a352d (patch)
tree889263c44321f3616f071f4a36a8448087a21660 /ratox.c
parent5b755787f801ac79c51316d95aaa100d47209a3f (diff)
Fix tests against friend call state
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 daa6c8f..7eae5cf 100644
--- a/ratox.c
+++ b/ratox.c
@@ -482,7 +482,7 @@ sendfriendcalldata(struct friend *f)
if (n == 0) {
f->av.state &= ~OUTGOING;
return;
- } else if (n < 0 || state & RINGING) {
+ } else if (n < 0 || f->av.state & RINGING) {
/* discard data as long as the call is not established */
return;
} else if (n == (framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE ? f->av.n : 0))) {