summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ratox.c b/ratox.c
index 50ecfa0..2842f8c 100644
--- a/ratox.c
+++ b/ratox.c
@@ -474,7 +474,8 @@ cbcalldata(ToxAv *av, int32_t cnum, int16_t *data, int len, void *udata)
n = write(f->fd[FCALL_OUT], &buf[wrote], len);
if (n < 0) {
if (errno == EPIPE) {
- /* TODO: terminate call here */
+ toxav_hangup(toxav, 0);
+ cancelrxcall(f, "Hangup");
break;
} else if (errno == EWOULDBLOCK) {
continue;
@@ -501,7 +502,6 @@ cancelrxcall(struct friend *f, char *action)
dprintf(f->fd[FCALL_PENDING], "0\n");
}
-
static void
cbconnstatus(Tox *m, int32_t frnum, uint8_t status, void *udata)
{