diff options
author | sin <sin@2f30.org> | 2014-10-15 10:24:41 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-10-15 10:24:41 +0100 |
commit | 4c3351ec603c8d8b0ea9ad68d627c228149b597d (patch) | |
tree | a5b651c2720f5d346313f755f352f40108f46c7e | |
parent | 5fe215536d27f441db06c4694de386205fa568c8 (diff) |
Only call toxav_kill_transmission() after toxav_prepare_transmission()
toxav_prepare_transmission() sets the internal toxav `call_active'
state variable. This is checked in toxav_kill_transmission() and
only if set, proceeds to release the resources.
-rw-r--r-- | ratox.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -500,7 +500,7 @@ cancelcall(struct friend *f, char *action) logmsg(": %s : Rx/Tx AV > %s\n", f->name, action); if (f->av.num != -1) { - if (toxav_get_call_state(toxav, f->av.num) != av_CallInviting) { + if (f->av.transmission) { r = toxav_kill_transmission(toxav, f->av.num); if (r < 0) weprintf("Failed to kill transmission\n"); |