tReset INCOMPLETE flag when closing FCALL_IN - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 8980dc40eef790b5f706068db6c34abaf0637594
 (DIR) parent 2206ba0a97aa9daa61530a21b5970f4784f10e07
 (HTM) Author: z3bra <contactatz3bradotorg>
       Date:   Thu,  2 Mar 2017 22:37:29 +0100
       
       Reset INCOMPLETE flag when closing FCALL_IN
       
       Diffstat:
         M ratox.c                             |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -481,6 +481,7 @@ sendfriendcalldata(struct friend *f)
                             framesize * sizeof(int16_t) - (f->av.state & INCOMPLETE ? f->av.n : 0));
                if (n == 0) {
                        f->av.state &= ~OUTGOING;
       +                f->av.state &= ~INCOMPLETE;
                        return;
                } else if (n < 0 || f->av.state & RINGING) {
                        /* discard data as long as the call is not established */