projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65239e9
)
remove unnecessary check
author
lurchi
<lurchi@strangeplace.net>
Mon, 22 Jan 2018 17:46:36 +0000
(18:46 +0100)
committer
lurchi
<lurchi@strangeplace.net>
Mon, 22 Jan 2018 17:46:36 +0000
(18:46 +0100)
The reason field of tasks in the pending_timeout queue is never modified while the tasks are in the queue
src/util/scheduler.c
patch
|
blob
|
history
diff --git
a/src/util/scheduler.c
b/src/util/scheduler.c
index 2970d3c25cb133d7fc2912ff8ac78abaeea83e24..6a1b1a22d83b5d327576487070ec92fa1ccaf0c9 100644
(file)
--- a/
src/util/scheduler.c
+++ b/
src/util/scheduler.c
@@
-1085,9
+1085,7
@@
GNUNET_SCHEDULER_add_at_with_priority (struct GNUNET_TIME_Absolute at,
pos = pending_timeout_head;
else
pos = prev->next;
- while ( (NULL != pos) &&
- ( (pos->timeout.abs_value_us <= t->timeout.abs_value_us) ||
- (0 != pos->reason) ) )
+ while ((NULL != pos) && (pos->timeout.abs_value_us <= t->timeout.abs_value_us))
{
prev = pos;
pos = pos->next;