aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/event_loop.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty_terminal/src/event_loop.rs')
-rw-r--r--alacritty_terminal/src/event_loop.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs
index 34169801..61dc69bc 100644
--- a/alacritty_terminal/src/event_loop.rs
+++ b/alacritty_terminal/src/event_loop.rs
@@ -333,8 +333,9 @@ where
'event_loop: loop {
// Wakeup the event loop when a synchronized update timeout was reached.
- let sync_timeout = state.parser.sync_timeout();
- let timeout = sync_timeout.map(|st| st.saturating_duration_since(Instant::now()));
+ let handler = state.parser.sync_timeout();
+ let timeout =
+ handler.sync_timeout().map(|st| st.saturating_duration_since(Instant::now()));
if let Err(err) = self.poll.poll(&mut events, timeout) {
match err.kind() {