fix: use Wait instead of Poll

This commit is contained in:
Lucas Nogueira 2021-10-18 13:34:06 -03:00
parent 7086cd54d8
commit 2e1f207165
No known key found for this signature in database
GPG Key ID: 2714B66BCFB01F7F

View File

@ -1815,7 +1815,7 @@ impl Runtime for Wry {
self
.event_loop
.run_return(|event, event_loop, control_flow| {
*control_flow = ControlFlow::Poll;
*control_flow = ControlFlow::Wait;
if let Event::MainEventsCleared = &event {
*control_flow = ControlFlow::Exit;
}