mirror of
https://github.com/Tha14/toxic.git
synced 2024-12-23 16:33:25 +01:00
Forgot to set index in some callbacks
This commit is contained in:
parent
476b056ed0
commit
2a6a5b13d7
@ -315,6 +315,7 @@ void callback_recv_error ( int32_t call_index, void* arg )
|
|||||||
{
|
{
|
||||||
CB_BODY(call_index, arg, onError);
|
CB_BODY(call_index, arg, onError);
|
||||||
stop_transmission(call_index);
|
stop_transmission(call_index);
|
||||||
|
((ToxWindow*)arg)->call_idx = -1;
|
||||||
}
|
}
|
||||||
void callback_call_started ( int32_t call_index, void* arg )
|
void callback_call_started ( int32_t call_index, void* arg )
|
||||||
{
|
{
|
||||||
@ -351,6 +352,7 @@ void callback_call_ended ( int32_t call_index, void* arg )
|
|||||||
void callback_requ_timeout ( int32_t call_index, void* arg )
|
void callback_requ_timeout ( int32_t call_index, void* arg )
|
||||||
{
|
{
|
||||||
CB_BODY(call_index, arg, onRequestTimeout);
|
CB_BODY(call_index, arg, onRequestTimeout);
|
||||||
|
((ToxWindow*)arg)->call_idx = -1;
|
||||||
}
|
}
|
||||||
void callback_peer_timeout ( int32_t call_index, void* arg )
|
void callback_peer_timeout ( int32_t call_index, void* arg )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user