Skip to content

Commit

Permalink
Merge pull request #402 from dawgfoto/fix401
Browse files Browse the repository at this point in the history
fix #401 - [regression] vibe looses static file requests
  • Loading branch information
s-ludwig committed Nov 22, 2013
2 parents 690d699 + 1761085 commit bc6f6c5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions source/vibe/core/core.d
Original file line number Diff line number Diff line change
Expand Up @@ -1019,14 +1019,17 @@ private struct CoreTaskQueue {
@property bool empty() const { return first is null; }

@property CoreTask front() { return first; }

void insertBack(CoreTask task)
{
assert(task.m_queue == null);
assert(task.m_nextInQueue is null);
task.m_queue = &this;
if (last) last.m_nextInQueue = task;
else first = last = task;
if (empty)
first = task;
else
last.m_nextInQueue = task;
last = task;
}

void popFront()
Expand Down

0 comments on commit bc6f6c5

Please sign in to comment.