ratox

FIFO based tox client
Log | Files | Refs | README | LICENSE

commit b0571c7aabe1874c7180ec340ad3901967acbe0d
parent 2a1638db2e7e390d7d87d45169692cdc01b33048
Author: z3bra <contactatz3bradotorg>
Date:   Fri Nov 25 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:
ratox.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ratox.c b/ratox.c @@ -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) {