forked from cozybit/wmediumd
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wmediumd: lib: sched: fix another scheduling corner case
When running with an external scheduler that also uses the event loop, we can detect e.g. a client disconnecting from a server while in usfstl_sched_forward(), causing us to not have a job anymore on the scheduler afterwards, which then causes the assert at the end to get reached erroneously. Move the job check and external wait into the loop so these cases are covered correctly. This actually happened in wmediumd on client disconnect at this exact time, while running usfstl_sched_forward().
- Loading branch information
1 parent
de6f118
commit 717e5d7
Showing
1 changed file
with
33 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters