mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-23 02:13:01 +01:00
Remove pointless null check
This commit is contained in:
parent
77238eeadf
commit
3cb6db3d60
@ -822,11 +822,6 @@ on_error:
|
|||||||
|
|
||||||
void stop_current_call(ToxWindow* self)
|
void stop_current_call(ToxWindow* self)
|
||||||
{
|
{
|
||||||
Call *this_call = &CallControl.calls[self->num];
|
|
||||||
|
|
||||||
if ( !this_call )
|
|
||||||
return;
|
|
||||||
|
|
||||||
if ( CallControl.pending_call ) {
|
if ( CallControl.pending_call ) {
|
||||||
toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL);
|
toxav_call_control(CallControl.av, self->num, TOXAV_CALL_CONTROL_CANCEL, NULL);
|
||||||
callback_call_canceled(self->num);
|
callback_call_canceled(self->num);
|
||||||
|
Loading…
Reference in New Issue
Block a user