tHang up only when we're in TRANSMITTING mode - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b0571c7aabe1874c7180ec340ad3901967acbe0d
 (DIR) parent 2a1638db2e7e390d7d87d45169692cdc01b33048
 (HTM) Author: z3bra <contactatz3bradotorg>
       Date:   Fri, 25 Nov 2016 16:22:15 +0100
       
       Hang up only when we're in TRANSMITTING mode
       
       When f->av.state equals TRANSMITTING, it means that we're neither
       receiving, nor sending data, thus, we can cancel the call.
       
       This doesn't apply to RINGING mode because this state is possible when
       someone calls us, and we didn't answer yet.
       
       Diffstat:
         M ratox.c                             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -1668,7 +1668,7 @@ loop(void)
                                                f->fd[FCALL_OUT] = fd;
                                }
        
       -                        if (!(f->av.state & INCOMING) && !(f->av.state & OUTGOING))
       +                        if (f->av.state == TRANSMITTING)
                                        cancelcall(f, "Hung up");
        
                                if (f->av.state & RINGING) {