Skip to content

Commit

Permalink
Restore schedule_tasks call on event waiter
Browse files Browse the repository at this point in the history
It's possible to run the scheduler just with :run.
  • Loading branch information
wingo committed May 24, 2018
1 parent b0bc5b3 commit 598745a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib/fibers/sched.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ end
function Scheduler:run(now)
if now == nil then now = self:now() end
for i=1,#self.sources do
-- The wait_for_events method should schedule tasks too.
if self.sources[i] ~= self.event_waiter then
self.sources[i]:schedule_tasks(self, now)
end
self.sources[i]:schedule_tasks(self, now)
end
self.cur, self.next = self.next, self.cur
for i=1,#self.cur do
Expand Down

0 comments on commit 598745a

Please sign in to comment.