1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-22 21:23:01 +01:00

Remove pointless null check

This commit is contained in:
Jfreegman 2015-12-05 00:19:11 -05:00
parent 77238eeadf
commit 3cb6db3d60
No known key found for this signature in database
GPG Key ID: 3627F3144076AE63

View File

@ -822,11 +822,6 @@ on_error:
void stop_current_call(ToxWindow* self)
{
Call *this_call = &CallControl.calls[self->num];
if ( !this_call )
return;
if ( CallControl.pending_call ) {
toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL);
callback_call_canceled(self->num);