Commit 48a53830 authored by Cedric Roux's avatar Cedric Roux

- Fix correct removal of NAS timer

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4748 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent e8a0f017
......@@ -283,8 +283,14 @@ int nas_timer_stop(int id)
{
/* Check if the timer entry is active */
if (_nas_timer_db_is_active(id)) {
nas_timer_entry_t *entry;
/* Remove the entry from the timer queue */
(void) _nas_timer_db_remove_entry(id);
entry = _nas_timer_db_remove_entry(id);
#if defined(ENABLE_ITTI)
timer_remove(entry->timer_id);
#else
(void)entry;
#endif
/* Delete the timer entry */
_nas_timer_db_delete_entry(id);
return (NAS_TIMER_INACTIVE_ID);
......
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