kms: Don't reschedule rendering on inactive sessions
This commit is contained in:
parent
6690e13d54
commit
e1894ef425
1 changed files with 6 additions and 4 deletions
|
|
@ -1004,10 +1004,12 @@ impl KmsState {
|
||||||
&device.render_node,
|
&device.render_node,
|
||||||
&mut data.state.common,
|
&mut data.state.common,
|
||||||
) {
|
) {
|
||||||
slog_scope::error!("Error rendering: {}", err);
|
if backend.session.is_active() {
|
||||||
return TimeoutAction::ToDuration(Duration::from_secs_f64(
|
slog_scope::error!("Error rendering: {}", err);
|
||||||
1.0 / surface.refresh_rate as f64,
|
return TimeoutAction::ToDuration(Duration::from_secs_f64(
|
||||||
));
|
1.0 / surface.refresh_rate as f64,
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue