Skip to content

Commit

Permalink
Panic instead of erroring when compositor channel unexpectedly closes
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jan 14, 2025
1 parent 2086fc0 commit aca3374
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions winit/src/program.rs
Original file line number Diff line number Diff line change
Expand Up @@ -600,16 +600,7 @@ async fn run_instance<P, C>(
.expect("Send control action");
break;
}
None => {
control_sender
.start_send(Control::Crash(
Error::GraphicsCreationFailed(
graphics::Error::NoAvailablePixelFormat,
),
))
.expect("Send control action");
break;
}
None => panic!("Compositor channel must not close!"),
}
// Empty the queue if possible
} else if let Ok(event) = event_receiver.try_next() {
Expand Down

0 comments on commit aca3374

Please sign in to comment.