summaryrefslogtreecommitdiff
path: root/ratox.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2014-10-06 11:54:10 +0100
committersin <sin@2f30.org>2014-10-06 11:54:10 +0100
commit264c9fd04d5a633e7ee9e59e8406ae5295f93bfb (patch)
treeed6d5d88f38f187b40d80a036dbfc7b2f42ea1fd /ratox.c
parent35a4caae3ffb8cb223e34a68e71ed63ce2b2d1db (diff)
Reset state after hangup
Diffstat (limited to 'ratox.c')
-rw-r--r--ratox.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ratox.c b/ratox.c
index 073f41f..daf3472 100644
--- a/ratox.c
+++ b/ratox.c
@@ -586,6 +586,7 @@ sendfriendcalldata(struct friend *f)
framesize * sizeof(int16_t) - f->av.incompleteframe * f->av.n);
if (n == 0) {
toxav_hangup(toxav, f->av.num);
+ f->av.state = av_CallNonExistant;
return;
} else if (n == -1) {
return;