Fix crash with runner refcell not getting dropped

This commit is contained in:
Osspial
2018-11-19 23:51:20 -05:00
parent 54ce6a21a0
commit 8269ed2a92

View File

@@ -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) {