Skip to content

Commit

Permalink
fix inversion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
withoutboats committed Sep 26, 2020
1 parent 8d46e96 commit b20253c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drive/demo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ pub fn driver() -> DemoDriver<'static> {
/// This will return `None` if events have already been submitted to the driver. The Demo Driver
/// currently only allows registering IO objects prior to submitting IO.
pub fn registrar() -> Option<&'static Registrar<'static>> {
if STARTED_COMPLETION_THREAD.is_completed() {
if !STARTED_COMPLETION_THREAD.is_completed() {
Some(&QUEUES.2)
} else {
None
Expand Down

0 comments on commit b20253c

Please sign in to comment.