Skip to content

Commit

Permalink
Fix crash with runner refcell not getting dropped
Browse files Browse the repository at this point in the history
  • Loading branch information
Osspial committed Nov 20, 2018
1 parent 54ce6a2 commit 8269ed2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/platform_impl/windows/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,8 @@ impl<T: 'static> EventLoop<T> {
}
runner!().events_cleared();

match runner!().control_flow {
let control_flow = runner!().control_flow;
match control_flow {
ControlFlow::Exit => break 'main,
ControlFlow::Wait => {
if 0 == winuser::GetMessageW(&mut msg, ptr::null_mut(), 0, 0) {
Expand Down

0 comments on commit 8269ed2

Please sign in to comment.