Don't consider dialog as still running if wait() fails

I'm not sure if we can trust the state of things if the wait() call
actually fails (as in, the call itself returns an error), so let's just
let the dialog die and hope that if there's more user activity it'll
start up again properly.
This commit is contained in:
Brian Tarricone 2022-05-30 18:27:55 -07:00
parent 5405d3081e
commit 28bcbd2ab0

View File

@ -305,7 +305,7 @@ impl<'a> Screensaver<'a> {
match unlock_dialog.child.try_wait() { match unlock_dialog.child.try_wait() {
Err(err) => { Err(err) => {
warn!("Failed to check unlock dialog's status: {}", err); warn!("Failed to check unlock dialog's status: {}", err);
self.unlock_dialog = Some(unlock_dialog); self.hide_cursor();
}, },
Ok(Some(status)) => { Ok(Some(status)) => {
let ok = match DialogExitStatus::try_from(status) { let ok = match DialogExitStatus::try_from(status) {