mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Double-free on timeout fix
This commit is contained in:
parent
d87c772a7e
commit
20ab02cf4b
|
@ -1027,7 +1027,7 @@ void *handle_timeout ( void *arg )
|
||||||
/* uint16_t _it = 0;
|
/* uint16_t _it = 0;
|
||||||
* for ( ; _it < _session->call->peer_count; _it++ ) */
|
* for ( ; _it < _session->call->peer_count; _it++ ) */
|
||||||
msi_cancel ( _call->session, _call->call_idx, _call->peers [0], "Request timed out" );
|
msi_cancel ( _call->session, _call->call_idx, _call->peers [0], "Request timed out" );
|
||||||
terminate_call(_call->session, _call);
|
/*terminate_call(_call->session, _call);*/
|
||||||
}
|
}
|
||||||
|
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user