Commit 8bab0a9b by Tobias Langer

Fixed case where both children are NULL.

parent 3af310ce
...@@ -160,7 +160,8 @@ embb_mtapi_task_t * embb_mtapi_priority_queue_pop(embb_mtapi_priority_queue_t* t ...@@ -160,7 +160,8 @@ embb_mtapi_task_t * embb_mtapi_priority_queue_pop(embb_mtapi_priority_queue_t* t
} }
/* abort if heap property is restored. */ /* abort if heap property is restored. */
if(embb_time_compare(&deadline, &swap_deadline) <= 0) { if(swap_deadline.seconds == ULLONG_MAX ||
embb_time_compare(&deadline, &swap_deadline) <= 0) {
break; break;
} }
......
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 sign in to comment