Commit 3364f314 authored by Aurelio Colosimo's avatar Aurelio Colosimo

state-listening: stop timer when leaving the state

parent f2ec9766
......@@ -78,5 +78,10 @@ int pp_listening(struct pp_instance *ppi, unsigned char *pkt, int plen)
}
}
/* Leaving this state */
if (ppi->next_state != ppi->state) {
pp_timer_stop(ppi->timers[PP_TIMER_ANNOUNCE_RECEIPT]);
}
return 0;
}
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