mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-23 05:29:54 +00:00
add_timer() does not set owning process
This commit is contained in:
parent
19c8f9ffdd
commit
7cb8148226
@ -155,17 +155,17 @@ add_timer(struct etimer *timer)
|
||||
etimer_request_poll();
|
||||
|
||||
if(timer->p != PROCESS_NONE) {
|
||||
/* Timer not on list. */
|
||||
|
||||
for(t = timerlist; t != NULL; t = t->next) {
|
||||
if(t == timer) {
|
||||
/* Timer already on list, bail out. */
|
||||
timer->p = PROCESS_CURRENT();
|
||||
update_time();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Timer not on list. */
|
||||
timer->p = PROCESS_CURRENT();
|
||||
timer->next = timerlist;
|
||||
timerlist = timer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user