Commit fc9f4823 authored by jehan's avatar jehan
Browse files

keep notification order as it was in previous timer implementation

parent e532cd49
......@@ -34,8 +34,8 @@
#define BELLE_SIP_CHANNEL_INVOKE_STATE_LISTENERS(channel,state) \
BELLE_SIP_INVOKE_LISTENERS_ARG1_ARG2(channel->state_listeners, belle_sip_channel_listener_t, on_state_changed, channel, state) \
BELLE_SIP_INVOKE_LISTENERS_ARG1_ARG2(channel->full_listeners, belle_sip_channel_listener_t, on_state_changed, channel, state)
BELLE_SIP_INVOKE_LISTENERS_ARG1_ARG2(channel->full_listeners, belle_sip_channel_listener_t, on_state_changed, channel, state) \
BELLE_SIP_INVOKE_LISTENERS_ARG1_ARG2(channel->state_listeners, belle_sip_channel_listener_t, on_state_changed, channel, state)
static void channel_prepare_continue(belle_sip_channel_t *obj);
......
......@@ -333,7 +333,9 @@ static void belle_sip_refresher_listener (belle_sip_refresher_t* refresher
}
if (endpoint->stat.refreshKo==1 && endpoint->transiant_network_failure) {
belle_sip_stack_set_send_error(endpoint->stack,0);
} else if (endpoint->stat.refreshOk==1 && endpoint->transiant_network_failure) {
} else if (endpoint->stat.refreshOk==1
&& endpoint->stat.refreshKo==0
&& endpoint->transiant_network_failure) {
/*generate a network failure*/
belle_sip_refresher_set_retry_after(endpoint->refresher,100);
belle_sip_stack_set_send_error(endpoint->stack,-1);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment